Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Reinier Bikker <R.P.Bikker@phys.uu.nl>
To: AXP-Liste <axp-list@redhat.com>
Subject: Re: exp underflow in glibc and compaq math library/kernel bug ?
Date: Tue, 27 Feb 2001 14:25:18 +0100 (MET)	[thread overview]
Message-ID: <Pine.OSF.4.33.0102271422550.28612-100000@itpuu.phys.uu.nl> (raw)
In-Reply-To: <20010226134933.A20708@itp.uni-hannover.de>


On Mon, 26 Feb 2001, Helge Kreutzmann wrote:

: > #include<math.h>
: > int main(void)
: > {
: > double x;
: > x=exp(-744.769);
: > x/=2.0;
: > printf("%g\n",x);
: > return(0);
: > }
: >
: > Compilation with gcc and linking with libm from glibc-2.2.1 gives a
: > floating point exception immediately.  With compaq math library or
: > compaq C compiler it is not so easy but it is also possible to get a
: > FPE, one has to play with numbers.  Why is it so?
: >

How was this compiled? With gcc you have to specify -mieee explicitly both
when compiling and linking. With ccc you use -ieee, but -mieee is mapped
to -ieee.

Reinier.




  reply	other threads:[~2001-02-27 13:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-26 12:49 exp underflow in glibc and compaq math library/kernel bug ? Helge Kreutzmann
2001-02-27 13:25 ` Reinier Bikker [this message]
2001-02-27 19:40   ` Greg Lindahl
  -- strict thread matches above, loose matches on Subject: below --
2001-02-27 19:53 Woods, Will
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