🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #41532

Re: gcc fails Paranoia (numeric) test under Linux

#41532
From: Thomas Koenig
Date: Mon, 18 Mar 1996 00:00
18 lines
1295 bytes
In comp.os.linux.misc, anlauf@crunch.ikp.physik.th-darmstadt.de (Harald Anlauf) wrote:

>Even when I insert explicit casts,

>    save = (double) divby3(dividend);
>    if (save == (double) divby3(dividend))

>and

>double divby3(double value)
>{
>    return (double) (value / 3.0);
>}

>the comparison still fails.  I am not aware of any gcc switch that
>makes the comparison true.

Have you tried the '-ffloat-store' option?
Technical Details
Message-ID: <4ik0mv$l0j@fg70.rz.uni-karlsruhe.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <4hn916$ejs@news.ccit.arizona.edu> <ub20mx45l5.fsf@crunch.ikp.physik.th-darmstadt.de> <4idvos$72b@harbinger.cc.monash.edu.au> <ubyboyctk5.fsf@crunch.ikp.physik.th-darmstadt.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,fbe8ee8d82a9766b
X-Google-Attributes: gid11318c,public
X-Google-Thread: 1103af,fbe8ee8d82a9766b
X-Google-Attributes: gid1103af,public
From: ig25@fg70.rz.uni-karlsruhe.de (Thomas Koenig)
Subject: Re: gcc fails Paranoia (numeric) test under Linux
Date: 1996/03/18
Message-ID: <4ik0mv$l0j@fg70.rz.uni-karlsruhe.de>
X-Deja-AN: 143058364
references: <4hn916$ejs@news.ccit.arizona.edu> <ub20mx45l5.fsf@crunch.ikp.physik.th-darmstadt.de> <4idvos$72b@harbinger.cc.monash.edu.au> <ubyboyctk5.fsf@crunch.ikp.physik.th-darmstadt.de>
content-type: text/plain; charset=iso-8859-1
organization: Universität Karlsruhe (TH), Germany 
mime-version: 1.0
reply-to: Thomas.Koenig@ciw.uni-karlsruhe.de
newsgroups: gnu.gcc.help,comp.os.linux.misc
nntp-posting-user: ig25