Date: Fri, 10 Oct 1997 21:49:09 +0000 (GMT) From: Terry Lambert <tlambert@primenet.com> To: gjohnson@nola.srrc.usda.gov (Glenn Johnson) Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Floating point exceptions Message-ID: <199710102149.OAA15093@usr08.primenet.com> In-Reply-To: <199710101907.OAA09470@millenia.srrc.usda.gov> from "Glenn Johnson" at Oct 10, 97 02:07:33 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> I've got a calculation intensive (simulation) application that I run that > aborts with a Floating Point Exception error under FreeBSD -current. I can run > this application just fine under Linux, but of course I want to run it under > FreeBSD (so I can replace Linux). My understanding is that FreeBSD traps > FPE's. Is there a way for me to change the FreeBSD source code to mask FPE's > rather than trap them? Better yet, can I do that for a specific application at > compile time? Your assistance is greatly appreciated. Fix: Correct the code to not generate exceptions Bad fix: fpsetmask( 0); Worst fix: signal( SIGFPE, SIG_IGN); Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710102149.OAA15093>