Mathematical functions_(re)
Sat, 9 Aug 1997 12:06:37 +0200 (MEST)
According to Jan-Jaap van der Heijden:
>
> `sin()' is not doing any checking, so you could replace it
> right away. But there are other functions that do some checking before
> calling the underlying OS function (like `ln')
>
> GCC knows an optimzation switch -ffast-math, [...]
What about this:
For gpc-2.1: Drop `sin()' (without any alias) and other non-checking
functions, but keep the `_p_foo()' variants for functions that *do*
some checking.
For gpc-2.2: Drop the `_p_foo()' versions of all mathematical functions
but those not supported by the OS (read: by `libc.a') and do the checking
inline. Make `--fast-math' turn out the checking. (Things like this
can be faced together with range checking in general.)
Peter
Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer
peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [970201]
maintainer GNU Pascal [970714] - http://home.pages.de/~gnu-pascal/ [970125]
Peter Gerwinski (peter@agnes.dida.physik.NO-SPAM-PLEASE.de)
HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada -
Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es