Re: catching floating point exception on OS X Intel
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On 9 mei 2007, at 13:51, Jonas Maebe wrote: int setfpumask(int fpmask) { int oldmask; asm volatile ("fstcw _fpucw"); oldmask = fpucw & 0xffc0; fpucw = fpucw | (fpmask & FPU_ExceptionMask); Small error, that should read: int setfpumask(int fpmask) { int oldmask; asm volatile ("fstcw _fpucw"); oldmask = fpucw & ~0xffc0; fpucw = (fpucw & 0xffc0) | (fpmask & FPU_ExceptionMask); Jonas _______________________________________________ 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... This email sent to site_archiver@lists.apple.com
participants (1)
-
Jonas Maebe