This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/4069] New: pow(-inf, nan) gives inf instead of nan
- From: "aurelien at aurel32 dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 18 Feb 2007 22:47:54 -0000
- Subject: [Bug math/4069] New: pow(-inf, nan) gives inf instead of nan
- Reply-to: sourceware-bugzilla at sourceware dot org
Here is a simple testcase:
[ampere:/tmp]$ cat test.c
#include <math.h>
#include <stdio.h>
int main()
{
printf("%lf\n", pow(-INFINITY, NAN));
return 0;
}
[ampere:/tmp]$ gcc -o test test.c -std=c99 -lm
[ampere:/tmp]$ ./test
inf
Note that the problem is present on x86_64 and powerpc, but not on i386.
--
Summary: pow(-inf, nan) gives inf instead of nan
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: math
AssignedTo: aj at suse dot de
ReportedBy: aurelien at aurel32 dot net
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=4069
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.