This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: builtin gamma function
- From: Ian Lance Taylor <iant at google dot com>
- To: James Hirschorn <James dot Hirschorn at hotmail dot com>
- Cc: <gcc at gcc dot gnu dot org>, <james dot hirschorn at gmail dot com>
- Date: Mon, 14 Nov 2011 22:57:32 -0800
- Subject: Re: builtin gamma function
- References: <BLU0-SMTP104D5E14CCB96CB63B80565E9C10@phx.gbl>
James Hirschorn <James.Hirschorn@hotmail.com> writes:
> I have noticed that the builtin gamma function is very accurate and
> extremely fast. Can someone tell me where to find the source code for the
> implementation?
Are you calling it on a constant? Because gcc will fold gamma applied
to a constant which meets certain characteristics.
If you aren't calling it on a constant, then you are getting the
function from your libc. gcc does not itself include an implementation
of the gamma function.
Ian