Re: setjmp/longjmp changed in Tiger
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On May 28, 2005, at 7:47 PM, David N. Williams wrote: http://www.opengroup.org/onlinepubs/009695399/basedefs/fenv.h.html [...] matt. _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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: 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Matt Watson