Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: "David A. van Leeuwen" <davl-s0p0a0m@cistron.nl>
Subject: HUGE_VAL, -mieee
Date: 1998/12/10	[thread overview]
Message-ID: <36704301.185640EF@cistron.nl> (raw)

Hi,

I noticed that using

#include <huge_val.h>

float a=HUGE_VAL;

will give a floating point exception when compiled without `-mieee' with
gcc.

Gcc's man page says that compiling in IEEE conformity slows down
execution, because not
so much of the alpha's special floating point hardware can be used.

Shouldn't there be a resonable value in huge_val.h in case `-mieee' is
_not_ given on an alpha.
Like
#define HUGE_VAL 1e100
or whatever is near to the end of a normal float.

---david

--
David A. van Leeuwen
                                        http://davl.op.het.net

          Echt stijlvol sterven doe je / bij een ander op de mat
          Op de dag dat je bezorgd wordt / door het NRC Handelsblad

                                                        ---Joop Visser






                 reply	other threads:[~1998-12-10  5:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox