Re: using long double math functions like sinl() with Cocoa
Re: using long double math functions like sinl() with Cocoa
- Subject: Re: using long double math functions like sinl() with Cocoa
- From: Tomas Hurka <email@hidden>
- Date: Thu, 04 Jan 2007 17:54:43 +0100
Hi Rolf,
On Jan 4, 2007, at 17:29, Dr. Rolf Jansen wrote:
[..]
On Thu, 04 Jan 2007 14:10:54 +0100 Tomas Hurka wrote:
On Jan 4, 2007, at 3:59 AM, E. Wing wrote:
So I'm speculating that there is something in the Foundation
headers that causes sinl to be mapped to sin (perhaps some
kind of #define).
Right, check
/System/Library/Frameworks/CoreServices.framework/Versions/A/
Frameworks/CarbonCore.framework/Versions/A/Headers/fp.h
for #define sinl(x)
and
/System/Library/Frameworks/CoreServices.framework/Versions/A/
Frameworks/CarbonCore.framework/Versions/A/Headers/
ConditionalMacros.h
for #define TYPE_LONGDOUBLE_IS_DOUBLE
Tomas, are you sure about this, that Cocoa utilizes the Carbon
<fp.h> math and not the Standard C <math.h> math functions?
Yes, I am. Run
cc -E a.m -o a.txt
(where a.m is your example) and look for the
/System/Library/Frameworks/CoreServices.framework/Frameworks/
CarbonCore.framework/Headers/fp.h
Bye,
--
Tomas Hurka <mailto:email@hidden>
NetBeans Profiler http://profiler.netbeans.org
Software Engineer, Developer Platforms Group
Sun Microsystems, Praha Czech Republic
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden