🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1338

Re: Questions about NCEG

#1338
From: Tom Neff
Date: Wed, 30 May 1990 02:21
19 lines
1444 bytes
In article <1990May30.203146.11442@twinsun.com> eggert@twinsun.com (Paul Eggert) writes:
>The question is whether an implementation can conform to both ANSI C and IEEE
>754.  For example, IEEE 754 requires that -0.0 and 0.0 be distinguishable.

Where does it say this?  Requiring that "minus zero" have a distinct
*internal* representation from "plus zero" says NOTHING about what a
parser is supposed to do with the string "-0.0".

>Suppose ANSI C somehow required that -0.0 and 0.0 be identical: then, because
>the standards would be inconsistent, an implementation couldn't conform to both
>standards.  

ANSI C does require that the strings "-0.0" and "0.0" parse to the same
internal representation number (right Doug?).  

I think the root problem here is that 754 requires some animals to exist
which X3.159 isn't very helpful in telling us how to write.  I know that
the AT&T V/386 support code for NaN's etc is pretty brutal -- we just
rip into the raw bits and look at subfields. ;-)
Technical Details
Message-ID: <15570@bfmny0.BFM.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!bfmny0!tneff
References: <3094@goanna.cs.rmit.oz.au> <1990May29.193451.6533@twinsun.com> <13016@smoke.BRL.MIL> <1990May30.203146.11442@twinsun.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!bfmny0!tneff
From: tneff@bfmny0.BFM.COM (Tom Neff)
Newsgroups: comp.std.c
Subject: Re: Questions about NCEG
Message-ID: <15570@bfmny0.BFM.COM>
Date: 30 May 90 02:21:16 GMT
References: <3094@goanna.cs.rmit.oz.au> <1990May29.193451.6533@twinsun.com> <13016@smoke.BRL.MIL> <1990May30.203146.11442@twinsun.com>
Reply-To: tneff@bfmny0.BFM.COM (Tom Neff)
Lines: 19