Re: setjmp/longjmp changed in Tiger
Re: setjmp/longjmp changed in Tiger
- Subject: Re: setjmp/longjmp changed in Tiger
- From: Matt Watson <email@hidden>
- Date: Sat, 28 May 2005 20:06:05 -0700
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:
This email sent to email@hidden