Float to Int Conversions

Stephen Pisuk smp@ll.mit.edu
Tue Feb 26 08:42:00 GMT 2002


No I had not, but it didn't help

If the result of the conversion is an INT
the conversion saturates at 0x80000000
however if the result is an UNSIGNED INT
the conversion is correct;


> Hi Stephen,
>
> Have you set IEEE 754 compliance on both compilers?
>
> GCC -ffloat-store
>
> I don't know what MSVC uses.
>
> --Eljay
>
>

__________________________________________________
Stephen Pisuk
MIT Lincoln Laboratory, Room C-472
244 Wood St., Lexington, MA   02420-9108
voice: (781)-981-3682   fax: (781)-981-4583
e-mail:   smp@ll.mit.edu




More information about the Gcc-help mailing list