Re: SOLVED: using long double math functions like sinl() with Cocoa
Re: SOLVED: using long double math functions like sinl() with Cocoa
- Subject: Re: SOLVED: using long double math functions like sinl() with Cocoa
- From: glenn andreas <email@hidden>
- Date: Sat, 6 Jan 2007 10:18:06 -0600
On Jan 6, 2007, at 8:07 AM, Dr. Rolf Jansen wrote:
I am aware of the problem, that the next Xcode update will quite
possibly revert my fix. However, in the moment it is the most
elegant and most quickly to realize solution with minmal impact on
system behaviour and performance. Furthermore, I have some hope
that Apple will fix this at some time in the future in a more
general way.
Note also that "long double" isn't supported in some circumstances.
From <http://developer.apple.com/releasenotes/DeveloperTools/RN-GCC4/
index.html>:
Long double
In previous releases of GCC, the long double type was just a
synonym for double. GCC 4.0 now supports true long double. In GCC
4.0 long double is made up of two double parts, arranged so that
the number of bits of precision is approximately twice that of double.
Warning: n versions of Mac OS X prior to 10.3.9 the system C
library did not support true long double, so if you try to pass a
long double value to any system C library routine, your program may
not run on older systems or may not produce the expected results.
I'm guess it is these details that causes the
TYPE_LONGDOUBLE_IS_DOUBLE to be turned on when including <Cocoa/
Cocoa.h> (though it should probably be based on the minimum supported
system and compiler used)
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium2 | build, mutate, evolve, animate | images, textures,
fractals, art
_______________________________________________
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