This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/3919] Quiet NaNs not propagated quietly by some math functions
- From: "jakub at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 15 Mar 2007 13:49:02 -0000
- Subject: [Bug math/3919] Quiet NaNs not propagated quietly by some math functions
- References: <20070125125821.3919.kreckel@ginac.de>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jakub at redhat dot com 2007-03-15 13:49 -------
acosh{,f,l} certainly don't raise that:
#define _GNU_SOURCE
#include <math.h>
#include <fenv.h>
#include <stdio.h>
volatile double n = NAN;
volatile double d;
volatile float f;
volatile long double ld;
volatile int i;
int
main (void)
{
feclearexcept (FE_ALL_EXCEPT);
d = acosh (n);
f = acoshf (n);
ld = acoshl (n);
printf ("%x\n", fetestexcept (FE_INVALID));
i = ilogb (n);
i = ilogbf (n);
i = ilogbl (n);
printf ("%x\n", fetestexcept (FE_INVALID));
d = log (n);
f = logf (n);
ld = logl (n);
printf ("%x\n", fetestexcept (FE_INVALID));
return 0;
}
prints 0, 1, 1 with both -m32 -fno-builtin and -m64 -fno-builtin on x86_64
with current CVS glibc.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |WAITING
http://sourceware.org/bugzilla/show_bug.cgi?id=3919
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.