What is acceptable for -ffast-math? (Was: associative law incombine)

Gabriel Dos_Reis gdosreis@sophia.inria.fr
Wed Aug 1 11:12:00 GMT 2001


| and probably a whole lot of other things that are equally "dubious".
| 
| 
| > But then, if they would have written that form in the first place.
| 
| But, as I said, there might be cases where you can't write it in an
| optimized way in the first place, such as in
|   inline double f() { return a/b; }
|   inline double g() { return c;   }
|   x = f()/g();
| plus inlining. 

But then is 0.0 is acceptable for 0.125 for speed?

-- Gaby



More information about the Gcc mailing list