This is the mail archive of the gcc@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: question on double to int conversion



On May 21, 2004, at 03:36, Jaeyoun Chung wrote:
| 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.

No, that is expected. -ffloat-store is irrelevant here. What you're doing is converting an out-of-range value to integer. This is undefined and either answer is OK.


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