• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: using lgamma_r
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: using lgamma_r (From: Michael McLaughlin <email@hidden>)

  • Prev by Date: Re: Click "Add" (Localization) Button. Nothing Happens.
  • Next by Date: Disable highlight of matching parenthesis/brace when typing
  • Previous by thread: Re: using lgamma_r
  • Next by thread: Setting is not defined in Project, Target or Application level, but not default either.
  • Index(es):
    • Date
    • Thread