• 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: Rounding mode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rounding mode


  • Subject: Re: Rounding mode
  • From: "Jan E. Schotsman" <email@hidden>
  • Date: Mon, 10 Dec 2012 15:55:13 +0100


On Dec 10, 2012, at 3:13 PM, Fritz Anderson wrote:

C casts are done by the compiler. The compiler has no idea what floating-point environment you'll have set at run time in all possible paths through your code.

I realize I was too cynical. I am calling fesetround in a routine that calls the function that does the rounding. But of course the compiler cannot/won't analyze all calling trees in my app and some calling function might set another rounding mode than another caller.
Learn something new every day, as they say.

Jan E.


 _______________________________________________
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

References: 
 >Re: Rounding mode (From: "Jan E. Schotsman" <email@hidden>)
 >Re: Rounding mode (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: Missing methods in the first responder object
  • Next by Date: Re: Still no diff for model version in Xcode 4?
  • Previous by thread: Re: Rounding mode
  • Next by thread: Still no diff for model version in Xcode 4?
  • Index(es):
    • Date
    • Thread