tildedave / ra-chess-engine

Golang chess engine I'm hacking up
3 stars 0 forks source link

Use Assembly for Bitboard Stuff #68

Closed tildedave closed 4 years ago

tildedave commented 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

tildedave commented 4 years ago

Too slow