[fpc-devel] Odd question?
mm
m2 at ellipsa.net
Thu Oct 18 16:17:21 CEST 2007
Hello,
Contrary to Delphi, FPC doesn't inline the "Odd()" functions. I agree
this is not very important for most programs but this is annoying for
'math' programs. A few months ago, I re-started to work on my NX library
and currently, just because FPC doesn't inline "Odd()", its code is
stuffed with expressions like "if (N and 1) <> 0 then" (it works but
this is less legible than "if Odd(N) then").
The inlined code shouldn't be much bigger than the calls to "Odd()". So,
why aren't they inlined? Is there a reason you did so?
mm
http://www.ellipsa.net/
More information about the fpc-devel
mailing list