]> git.sesse.net Git - stockfish/commitdiff
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)
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.


No differences found