]> git.sesse.net Git - stockfish/commit
ARM lsb/msb assembly
authorJean-Francois Romang <jeanfrancois.romang@gmail.com>
Thu, 11 Oct 2012 14:55:25 +0000 (22:55 +0800)
committerMarco Costalba <mcostalba@gmail.com>
Thu, 11 Oct 2012 19:01:52 +0000 (21:01 +0200)
commit7f9ebf8e86e90ea1eb68388f1be12503a3f31e56
tree2af14edc77e92954d91e7d8fa3f0c4bd9c766f4b
parent4e7da9be3dcb2d58d59da7b3d421a1ff20f040a9
ARM lsb/msb assembly

Implement lsb/msb using armv7 assembly instructions.
msb is the easiest one, using a gcc intrinsic that generates
code using the ARM's clz instruction. lsb is also using this
clz instruction, but with the help of ARM's 'rbit' (bit
reversing) instruction. This leads to a >2% speed gain.

I also renamed 'arm-32' to the more meaningfull 'armv7' in the Makefile

No functional change.
src/Makefile
src/bitboard.h