*BSD News Article 63031


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!newshost.telstra.net!act.news.telstra.net!psgrain!charnel.ecst.csuchico.edu!newshub.csu.net!usc!howland.reston.ans.net!newsfeed.internetmci.com!news.mathworks.com!fu-berlin.de!cs.tu-berlin.de!informatik.uni-bremen.de!nordwest.pop.de!uniol!uni-erlangen.de!news.tu-chemnitz.de!irz401!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Floating Point Exceptions
Date: 4 Mar 1996 22:19:17 GMT
Organization: Private BSD site, Dresden
Lines: 21
Message-ID: <4hfq95$29q@uriah.heep.sax.de>
References: <4gqv91$r88@susscsc1.rdg.ac.uk> <4gta47$1bs@uriah.heep.sax.de> <4h7tc0$fqu@ns1.tstt.net.tt>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

feisal@tstt.net.tt (Feisal Mohammed) writes:

> >	fpsetmask(0);

> I tried this on one particular program RLaB, and got NaNs etc,
> but on exiting I get a message that RLaB exited with masked
> floating point exceptions. Can I ignore this message or do I have
> to actually reset the masks to default.

I believe this is rather a warning than an error (the system must have
noticed the fact anyway -- it told you about this).  If you're
paranoid, i think you'll be able to find some macro inside of
<machine/floatingpoint.h> that would allow you to save the FP mask so
you could restore it properly before exiting.  (Remember atexit().)

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)