Date: Mon, 17 Aug 1998 17:00:29 -0500 From: "Brian C. Grayson" <bgrayson@marvin.ece.utexas.edu> To: freebsd-questions@FreeBSD.ORG Subject: Avoiding SIGFPE Message-ID: <19980817170029.A4330@marvin.ece.utexas.edu>
next in thread | raw e-mail | index | archive | help
Under NetBSD, 1.0/0.0 returns NaN. Under FreeBSD, it causes an exception. I could have sworn there was some way to specify which behavior one wanted, but I can't find it anywhere. Is there any way in FreeBSD to say ``just return NaN'', or will it always SIGFPE me? Or, is there any way to write a signal handler that will catch the SIGFPE, and tell it to just use a value of NaN, and resume execution? I'm already trapping signals and installing signal handlers in this app, so installing another one would be No Big Deal. TIA. Brian -- "...and the particle undergoes a BOINNNNG..." - Dr. Dunning, PHYS 202 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980817170029.A4330>