Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setjmp/longjmp changed in Tiger




On May 28, 2005, at 7:47 PM, David N. Williams wrote:

Is the Tiger behavior a bug? If so, I'll file a bug report. Please let me know what you think.

This is not a bug. longjmp() should restore the environment at the time of the setjmp() and floating-point rounding mode is part of the environment, so Tiger does this correctly.


As to the "for example, floating-point status flags" part of the man page, floating-point status flags are not floating-point control modes. See the distinction here:

http://www.opengroup.org/onlinepubs/009695399/basedefs/fenv.h.html

[...]

A floating-point status flag is a system variable whose value is set (but never cleared) when a
floating-point exception is raised, which occurs as a side effect of exceptional floating-point
arithmetic to provide auxiliary information. A floating-point control mode is a system variable
whose value may be set by the user to affect the subsequent behavior of floating-point arithmetic.


matt.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >setjmp/longjmp changed in Tiger (From: "David N. Williams" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.