Daniël Mantione wrote on Mon, 03 Sep 2012:
Certainly, but the code used in that asm implementation is quite out of reach for compilers.
Given that we now have support for the bsr intrinsic, it should be possible to more or less literally translate it into Pascal though. The trick to change the unsigned division by a constant into a multiplication followed by a shift is also in the compiler (only for ppc and x86 currently though). Jonas _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel