What is acceptable for -ffast-math? (Was: associative law in combine)
Theodore Papadopoulo
Theodore.Papadopoulo@sophia.inria.fr
Wed Aug 1 11:27:00 GMT 2001
Gabriel.Dos_Reis@sophia.inria.fr said:
> | 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?
Yes, if you know by advance that this cannot happen because of your
input data accuracy. Then you will get the speed advantage without
the loss of accuracy since it cannot happen.
--------------------------------------------------------------------
Theodore Papadopoulo
Email: Theodore.Papadopoulo@sophia.inria.fr Tel: (33) 04 92 38 76 01
--------------------------------------------------------------------
--
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Exmh version 2.2 06/23/2000
iD8DBQE7aEn/IzTj8qrxOU4RAnxLAJ9fzLZKK+35iIN5MAtX6sb+OAs55QCfTbiJ
jUnXpCa+JAuS9mmYBTBb+/g=
=lUNo
-----END PGP SIGNATURE-----
More information about the Gcc
mailing list