mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 08:37:44 +00:00
7f9ebf8e86
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.