Casting and Optimization Flags
Colin Law
c.law@elec.gla.ac.uk
Wed Dec 11 05:47:00 GMT 2002
>
>
>casting floats to integers does not round; it truncates
>
>
Thanks for the replies. Why was this behaviour more (only!) obvious
when I used the compiler optimization flags? Had I not tried this, I
would be quite oblivious to the problem, which could have been very
difficult to track down futher down the line.
Thanks for the bit twiddling hack link Eljay, some of these will do
exactly what I'm looking for.
~Colin.
More information about the Gcc-help
mailing list