Closed tildedave closed 4 years ago
Would be nice to use some processor instructions for some frequent bit manipulations, notably bits.OnesCount64 and bits.TrailingZeros64. Doing an objdump on the resulting binary indicates OnesCount64 isn't using POPCNT (for example).
https://stackoverflow.com/questions/2951028/is-it-possible-to-include-inline-assembly-in-go-code
Too slow
Would be nice to use some processor instructions for some frequent bit manipulations, notably bits.OnesCount64 and bits.TrailingZeros64. Doing an objdump on the resulting binary indicates OnesCount64 isn't using POPCNT (for example).
https://stackoverflow.com/questions/2951028/is-it-possible-to-include-inline-assembly-in-go-code