Am Mittwoch, den 05.09.2007, 12:52 -0400 schrieb Michel Salim:
Ah OK. Why does the smaller test example work fine, though?
Seems gcc is smart enough to detect that "floor(3/5)" is constant and omits the call to the floor function. Btw, another way to get rid of the -lm dependency, as I learned right now: Enable optimization. When passing -O2 gcc also replaces the call to floor by some builtin voodoo. Ciao, Mathias -- Mathias Hasselmann <mathias hasselmann gmx de> http://taschenorakel.de/
Attachment:
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil