Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* HUGE_VAL, -mieee
@ 1998-12-10  5:00 David A. van Leeuwen
  0 siblings, 0 replies; only message in thread
From: David A. van Leeuwen @ 1998-12-10  5:00 UTC (permalink / 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






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-12-10  5:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-12-10  5:00 HUGE_VAL, -mieee David A. van Leeuwen

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