• 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
Overriding libSystem's math functions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Overriding libSystem's math functions


  • Subject: Overriding libSystem's math functions
  • From: Mike Blaguszewski <email@hidden>
  • Date: Fri, 8 Dec 2006 15:31:38 -0500

In an attempt to get identical floating point results across platforms, I'm compiling my project with the -fno-fast-math switch, and using Sun's open source implementation of the standard C math functions. I'll later do the equivalent with VC++ on Windows.

Currently I'm compiling these files directly into my project, and #including the system <math.h> header. This seems to work, but gives me a bunch of linker warnings about multiple definitions for sin, cos, etc.. Is this a reliable thing to be doing? Is there some better way to override functions in libSystem? Worst case, I can rename the custom functions and their calls, but I was hoping to avoid that.

Thanks for any assistance, and if you think my end goal is hopeless, feel free to advise on that too :-)

-- 
Mike Blaguszewski / Cocoa Hacker / Ambrosia Software, Inc.

 _______________________________________________
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

  • Follow-Ups:
    • Re: Overriding libSystem's math functions
      • From: Alastair Houghton <email@hidden>
  • Prev by Date: Re: const assignment issue
  • Next by Date: Re: Re: const assignment issue
  • Previous by thread: Re: popup of included files sometimes not working
  • Next by thread: Re: Overriding libSystem's math functions
  • Index(es):
    • Date
    • Thread