On Sat, Jul 28, 2012 at 09:11:13PM -0700, Michael Gottesman wrote: > *NOTE* IIRC compiling this with -O0 on x86-64 can yield the wrong > result since clang will emit shifts and on intel shifts are mod the > register size: The original code is depending on UB, if it doesn't mask. Joerg