On Feb 9, 2009, at 1:50 AM, Rob Keniger wrote:

So what is the recommendation for 64-bit development? Do we really have to litter our code with (CGFloat) casts all over the place, or is there some way we can tell the compiler to treat our floating point literals as float on 32-bit and double on 64-bit?


As I said earlier in this thread, the compiler flag -fsingle-precision- constant tells GCC to treat double constants as if they were float constants. Use it when building your 32-bit executables and you won't lose any precision when doing math in your 64-bit executables.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to