This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/4069] New: pow(-inf, nan) gives inf instead of nan


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]