[fpc-devel] Re: Faster Implementation for IntToStr
jonas.maebe at elis.ugent.be
Mon Sep 3 11:33:33 CEST 2012
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).
More information about the fpc-devel