[Bug fortran/32980] Vendor extension: Intrinsic functions (D)GAMMA, LGAMMA (ALGAMA/DLGAMA)
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Aug 21 17:06:00 GMT 2007
------- Comment #3 from burnus at gcc dot gnu dot org 2007-08-21 17:06 -------
Created an attachment (id=14090)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14090&action=view)
invoke.texi patch
Note: I did not mention "Fortran 2008" and I also did not include "LOG_GAMMA"
(F2008 name of "LGAMMA").
LGAMMA: lgamma,lgammaf,lgammal are part of C99.
GAMMA: "gamma" is a vendor extension, but C99 has the "true Gamma function":
tgamma, tgammaf, tgammal.
(Contrary to Fortran, C allows all values but returns NaN (neg.int.) or +/-INF
(+/-0) for values excluded in Fortran.)
As the functions are part of C99, gcc offers these as BUILD_IN_*.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32980
More information about the Gcc-bugs
mailing list