This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]