This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: builtin gamma function


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]