• 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 long double math functions like sinl() with Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • SOLVED: using long double math functions like sinl() with Cocoa
      • From: "Dr. Rolf Jansen" <email@hidden>
References: 
 >Re: using long double math functions like sinl() with Cocoa (From: "Dr. Rolf Jansen" <email@hidden>)

  • Prev by Date: Re: Enabling a Menu item
  • Next by Date: Shy hand cursor for links in NSTextView
  • Previous by thread: Re: using long double math functions like sinl() with Cocoa
  • Next by thread: SOLVED: using long double math functions like sinl() with Cocoa
  • Index(es):
    • Date
    • Thread