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: * Re: What is acceptable for -ffast-math? (Was: associative law in combine)


<<But most people who write floating point code do not think that way. They
consider FP to be "mathematically exact" (which _does_ obey associative
and distributive laws), and they write their programs that way.
>>

I don't know if it is true that most people do not know what they are doing
when they right floating-point code, but that's irrelevant. The default
behavior should be to behave correctly, the fact that many programmers
don't know what correct behavior means is no excuse to do otherwise.

In fact many programmers lack knowledge of many fine points of programming
language definitions, but we do not use that as an excuse for not bothering
to follow the definition.


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