🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.math.num-analysis
Article #1299

Re: NaN/Inf in gnu C

#1299
From: Stephen L Moshier
Date: Sun, 30 Oct 1994 01:32
22 lines
1360 bytes
ivo@next.agsm.ucla.edu (Ivo Welch) writes:


>I used to use the following definitions on an Intel computer

>#define NaN	0.0/0.0
>#define Inf	1.0/0.0
>#define isNaN(x)	((x)!=(x))

>Unfortunately, the new gnu C and C++ compilers complain about division  
>errors.  What is the currently recommended way either to shut this warning  
>off, or to define Inf/NaN?

>Ivo Welch			ivo@128.97.74.50 = next.agsm.ucla.edu
>Asst Prof of Finance		iwelch@agsm.ucla.edu
>AGSM at UCLA			


You cannot shut off the warning without also turning off other
warnings that you might reasonably want to get.  If you repost
your message to the newsgroup gnu.gcc.bug, the gnurus will
decide something to do about it.
Technical Details
Message-ID: <CyGpME.HqE@world.std.com>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!EU.net!uunet!world!moshier
References: <38epj9$n3q@news.mic.ucla.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 107079,47da2fb6ae54bedb
X-Google-Attributes: gid107079,public
X-Google-Thread: f97d0,47da2fb6ae54bedb
X-Google-Attributes: gidf97d0,public
X-Google-ArrivalTime: 1994-10-29 18:32:55 PST
Newsgroups: sci.math.num-analysis,gnu.g++
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!EU.net!uunet!world!moshier
From: moshier@world.std.com (Stephen L Moshier)
Subject: Re: NaN/Inf in gnu C
Message-ID: <CyGpME.HqE@world.std.com>
Organization: The World Public Access UNIX, Brookline, MA
References: <38epj9$n3q@news.mic.ucla.edu>
Distribution: inet
Date: Sun, 30 Oct 1994 01:32:38 GMT
Lines: 22