🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1955

floating point constant folding

#1955
From: Hans van Eck
Date: Fri, 09 Nov 1990 15:01
12 lines
1003 bytes
Is it allowed to evaluate constant floating point expressions with greater
range and precision than that of the execution environment in contexts
where a constant is not required?

There are unexpected implications of both allowing and disallowing such
folding, but I cannot find a statement in the standard that unambiguously
says what a translator may or may not do.
--
Hans van Eck, Dept. of Mathematics and Computer Science, Vrije Universiteit,
De Boelelaan 1081, 1081 HV Amsterdam, The Netherlands
Voice: +31 20 5485302 			Email:	eck@cs.vu.nl
Technical Details
Message-ID: <8191@star.cs.vu.nl>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!elroy.jpl.nasa.gov!ncar!gatech!bloom-beacon!eru!hagbard!sunic!mcsun!hp4nl!star.cs.vu.nl!eck@cs.vu.nl

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!elroy.jpl.nasa.gov!ncar!gatech!bloom-beacon!eru!hagbard!sunic!mcsun!hp4nl!star.cs.vu.nl!eck@cs.vu.nl
From: eck@cs.vu.nl (Hans van Eck)
Newsgroups: comp.std.c
Subject: floating point constant folding
Message-ID: <8191@star.cs.vu.nl>
Date: 9 Nov 90 15:01:20 GMT
Sender: news@cs.vu.nl
Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
Lines: 12