This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Casting and Optimization Flags
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.