[fpc-devel] Odd question?

Michael Schnell mschnell at lumino.de
Fri Oct 19 10:05:12 CEST 2007

> It's because the Odd function is an assembler function, and the 
> compiler can't yet inline assembler functions. I guess this stems from 
> the time that the compiler was not very good at inlining nor at 
> removing stack frames. I would probably be best to simply remove all 
> assembler implementations of Odd() from the rtl so the generic Pascal 
> version is used instead (which can be inlined).
Isn't Odd simply
   (i and 1) <> 0


More information about the fpc-devel mailing list