Re: Rounding mode
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