This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: question on double to int conversion
* ja2morri@csclub.uwaterloo.ca (James A. Morrison) at 2004-05-21 00:36-0400
[...]
| As far as I know sparc has a ieee compliant 64-bit double.
Is it related to larger bit precision stuffs in ia32 architecture?
Still, I guess the result should be max_int or min_int if the value cannot be
represented in int value.
>> 4 the output is 80000000 and 80000000.
>
| However, on x86 gcc uses x87 instructions and register stack where possible
| so the x86 output uses an 80 bit double.
| You could try -fstore-float to see if that gives the results you want.
well still doesn't work with -ffloat-store option.