🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1982

Re: floating point constant folding

#1982
From: Blair P. Houghton
Date: Thu, 15 Nov 1990 15:33
20 lines
1419 bytes
In article <1990Nov14.192231.29728@athena.mit.edu> jfc@athena.mit.edu (John F Carr) writes:
>In article <1990Nov13.174025.1520@zoo.toronto.edu>
>	henry@zoo.toronto.edu (Henry Spencer) writes:
>>Observable results include overflow exceptions and the values
>>of data items written out to files.
>
>Overflows of types other than unsigned integers are undefined, so a

Almost threw me there.  The standard defines unsigned
integers as being unable to overflow; the excess bits are
simply lost and the effect is that of 'result mod 2^n, n =
number of bits in an unsigned integer' (cf. ANSI X3.159-1989,
sec. 3.1.2.5., p. 24, ll. 5-9).  It doesn't _explicitly_
state that overflow for other types is undefined.  That
comes from the explicit undefinedness of the effect of any
exception during expression evaluation (ibid., sec. 3.3,
p. 39, ll.  15-7).

				--Blair
				  "Just wanted to clear that up."
Technical Details
Message-ID: <978@inews.intel.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!apple!olivea!orc!inews!cmdnfs!bhoughto
References: <8191@star.cs.vu.nl> <1990Nov13.174025.1520@zoo.toronto.edu> <1990Nov14.192231.29728@athena.mit.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!apple!olivea!orc!inews!cmdnfs!bhoughto
From: bhoughto@cmdnfs.intel.com (Blair P. Houghton)
Newsgroups: comp.std.c
Subject: Re: floating point constant folding
Message-ID: <978@inews.intel.com>
Date: 15 Nov 90 15:33:37 GMT
References: <8191@star.cs.vu.nl> <1990Nov13.174025.1520@zoo.toronto.edu> <1990Nov14.192231.29728@athena.mit.edu>
Sender: news@inews.intel.com
Organization: Intel Corp, Chandler, AZ
Lines: 20