[Patch, Fortran] PR32980 - Add GAMMA and LGAMMA intrinsics
Tobias Burnus
burnus@net-b.de
Tue Aug 21 19:38:00 GMT 2007
:ADDPATCH fortran:
This patch adds:
a) The gamma function as vendor intrinsic GAMMA with the specific names
GAMMA and DGAMMA. (Only) "GAMMA" is also part of the current Fortran
2008 draft.
b) The logarithm of the absolute value of the Gamma function as vendor
intrinsic LGAMMA with the specific names AGAMA and DGAMA. The Fortran
2008 draft has this function under the name LOG_GAMMA.
While LGAMMA is compatible to LOG_GAMMA, I did not add the F2008/draft
version. Anyone thinks that I should?
Note: The functions tgamma (t = true) and lgamma are part of C99.
Regression tested on x86-64/Linux. Ok for the trunk?
Tobias
PS: GAMMA seems to be the last missing popular vendor intrinsic -
ignoring things which should be rather implemented in modules such as
functions to interface with POSIX or similar.
PPS: I think BUILTIN_GAMMA and BUILTIN_TGAMMA are identically, if
someone has reason to believe that this is not the case, please tell me.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gamma2.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070821/85690f91/attachment.ksh>
More information about the Fortran
mailing list