From: Jean-Francois Romang Date: Thu, 11 Oct 2012 14:55:25 +0000 (+0800) Subject: ARM lsb/msb assembly X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=7f9ebf8e86e90ea1eb68388f1be12503a3f31e56;hp=7f9ebf8e86e90ea1eb68388f1be12503a3f31e56 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. ---