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: why not consfold sin(const)


Toon Moene wrote:
Robert Dewar wrote:

In sensible languages for floating point computations, yes. One has to conclude, though, that floating point arithmetic was added as an afterthought to C - not surprising, given its initial niche.

UGH!


All functions in <math.h> can set errno for domain and range errors; in other words, those functions are not pure, and cannot be moved out of loops or CSE'd away.

Seems like you might want to overlook this point in -ffast-math??



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