🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42218

[Q] How can I set underflow NaN's to appear as zero?

#42218
From: Deutscher
Date: Sun, 31 Dec 1995 00:00
18 lines
1297 bytes
Hi,
  I am using gcc 2.6.3 and get quite often #NAN's for something too close to
zero to represent. I'd prefer to have these NAN's show up as zero, so instead
of a gradual underflow I'd like an abrupt uunderflow. I know there us a
library function to do exactly this on Solaris ( I used it from cc and f77),
but I was wondering whether there is a way to tell gcc to do the same thing.
I looked trough the info file and got lost ...
My solution at the moment is to pipe the output through a Sed script, but I'd
hope for something closer to the code ..

Thanks in advance!   Stefan

--
===============================================================================
Stefan A. Deutscher, sad@utk.edu, (001)-423-[522-7845|974-7838|574-5897]
                                             home^    UTK^     ORNL^
===============================================================================
Technical Details
Message-ID: <4c6qj9$j14@gaia.ns.utk.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,4f93423435c10080,start
X-Google-Attributes: gid11318c,public
From: sad@utkux.utcc.utk.edu (Deutscher)
Subject: [Q] How can I set underflow NaN's to appear as zero?
Date: 1995/12/31
Message-ID: <4c6qj9$j14@gaia.ns.utk.edu>
X-Deja-AN: 123314155
organization: University of Tennessee, Knoxville
newsgroups: gnu.gcc.help