From owner-freebsd-current Mon Feb 10 19:22:22 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA07449 for current-outgoing; Mon, 10 Feb 1997 19:22:22 -0800 (PST) Received: from hydrogen.nike.efn.org (metriclient-6.uoregon.edu [128.223.172.6]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA07443 for ; Mon, 10 Feb 1997 19:22:11 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by hydrogen.nike.efn.org (8.8.4/8.8.4) with SMTP id TAA27544; Mon, 10 Feb 1997 19:20:41 -0800 (PST) Date: Mon, 10 Feb 1997 19:20:41 -0800 (PST) From: John-Mark Gurney Reply-To: John-Mark Gurney To: Mark Diekhans 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.. In-Reply-To: <199702110143.RAA00810@osprey.grizzly.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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)