From owner-freebsd-questions Wed Mar 3 11:12:14 1999 Delivered-To: freebsd-questions@freebsd.org Received: from posgate.acis.com.au (posgate.acis.com.au [203.14.230.14]) by hub.freebsd.org (Postfix) with ESMTP id 4D7B414F9F for ; Wed, 3 Mar 1999 11:12:09 -0800 (PST) (envelope-from andymac@bullseye.apana.org.au) Received: from bullseye.apana.org.au (uucp@localhost) by posgate.acis.com.au (8.9.2/8.9.2/Debian/GNU) with UUCP id GAA15597; Thu, 4 Mar 1999 06:01:30 +1100 (EST) Received: from bullseye.apana.org.au (central.apana.org.au [203.9.107.245]) by bullseye.apana.org.au (8.8.8/8.8.8) with SMTP id UAA25298; Wed, 3 Mar 1999 20:47:04 +1100 (EST) (envelope-from andymac@bullseye.apana.org.au) Date: Wed, 3 Mar 1999 20:44:55 +1100 (EDT) From: Andrew MacIntyre To: cjclark@home.com Cc: FreeBSD Questions Subject: Re: FP Math In-Reply-To: <199903021703.MAA02135@cc942873-a.ewndsr1.nj.home.com> Message-ID: X-X-Sender: andymac@bullseye.apana.org.au MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 2 Mar 1999, Crist J. Clark wrote: > I have been having some trouble with floating point > operations, namely the dreaded, > > Floating exception (core dumped) > > Having a look at 'man math' only really served to confuse me more. The I recall a thread some time ago where a number of related issues were canvassed. Notwithstanding Greg Black's comments on what happens with "undefined" parts of the C standard, I think the basis of your difficulty has to do with the fact that FreeBSD's math library has traditionally operated with all exceptions unmasked, whereas many other platforms have defaulted to masking certain FP exceptions, at least in some circumstances. I suggest you man fpsetmask for more info. I also note from another message in this thread 2.2.8 behaves differently than 2.2.7 and earlier - the default FP mask may have been changed to match the default apparently used by other contemporary OSes. -- Andrew I MacIntyre "These thoughts are mine alone..." E-mail: andrew.macintyre@aba.gov.au (work) | Snail: PO Box 370 andymac@bullseye.apana.org.au (play) | Belconnen ACT 2616 Fido: Andrew MacIntyre, 3:620/243.18 | Australia To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message