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: strange double comparison results with -O[12] on x86(-32)


Dave Korn wrote:

  ... or it's a bug in the libc/crt-startup, which is where the hardware
rounding mode is (or should be) set up ...

Well if you think that the operations should reflect IEEE 64-bit semantics (which is the only rationale for mucking with the rounding mode in the startup), then this is only an approximate fix, since the intermediate values still have excessive range, so you don't get infinities when expected.


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