Re: using lgamma_r
Re: using lgamma_r
- Subject: Re: using lgamma_r
- From: Jeremy Pereira <email@hidden>
- Date: Fri, 7 Mar 2008 11:22:21 +0000
On 6 Mar 2008, at 16:34, Michael McLaughlin wrote:
On Mar 6, 2008, Steve Checkoway wrote:
FWIW, the MacOSX10.3.9 SDK (i386) math.h *does* include the REENTRANT
lgamma_r block. Anyone know where it went -- or why?
Does the implementation in lgamma.c in darwin not work on x86 and if
not, is it not easily "fixed"?
The 10.5 i386 math.h file has prototypes for lgamma() for float,
double and
long double. AFAIK, the only difference with the lgamma_r()
function is
that you pass the address of an int to use in place of the global int
referenced by lgamma(). Thus, the fix should be easy.
It looks to me like the REENTRANT block, in the i386 version, was
simply
excised by mistake in between Panther and Tiger.
Defining the prototype yourself and compiling results in an undefined
symbol when the i386 binary is being linked, so I guess the excision
was not accidental. There is no lgamma_r in the i386 C library.
--
Mike McLaughlin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden