Date: Mon, 10 Feb 1997 19:20:41 -0800 (PST) From: John-Mark Gurney <jmg@nike.efn.org> To: Mark Diekhans <markd@Grizzly.COM> Cc: mcclure@cs.unm.edu, freebsd-gnats-submit@freefall.freebsd.org, freebsd-current@freebsd.org Subject: Re: misc/229 floating point exception on illegial values.. Message-ID: <Pine.BSF.3.95q.970210191237.24299T-100000@hydrogen.nike.efn.org> In-Reply-To: <199702110143.RAA00810@osprey.grizzly.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 10 Feb 1997, Mark Diekhans wrote: > >I believe that this is what is suppose to happen... you use SIGFPE to > >trap these errors and possibly rerun the function after correcting the > >problem.... acording to the math(3) man page an exception is suppose to > >occure on invalid values... > > > >so this is really a non-error correct? and this pr should be closed... > > > >i.e. acos(-2.0) is suppose to generate a SIGFPE else it isn't doing what > >math(3) says it will do... > > As the default behavior, this causes a great amount of pain when porting > software to BSD. No other system that I know of works in this manner. > Its a royal pain for things like Tcl and other interpreters that want to > check errno after calling a math function. well... it turns out that this is the IEEE 754 Spec that libm if following... I don't think the FreeBSD team would mind adding a free ANSI C compatible math lib to the source tree... do you have access or knowledge of one? guess the real pr is is not having an ANSI C math lib? thanks for the clarification... ttyl.. John-Mark gurney_j@efn.org http://resnet.uoregon.edu/~gurney_j/ Modem/FAX: (541) 683-6954 (FreeBSD Box) Live in Peace, destroy Micro$oft, support free software, run FreeBSD (unix)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.970210191237.24299T-100000>