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]

Re: What is acceptable for -ffast-math? (Was: associative law in combine)


> If you see  a / 2.0 / 2.0
> 
> it is absolutely definition OK, to compute this particular expression
> as a / 4.0 in any language no matter WHAT the standard says, since the
> result is exactly the same. But for other divisors this is not necessarily

No, if you have IEEE denormals, double rounding can give a different result.


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