public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/4069] New: pow(-inf, nan) gives inf instead of nan
@ 2007-02-18 22:48 aurelien at aurel32 dot net
  2007-03-01 15:20 ` [Bug math/4069] " jakub at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: aurelien at aurel32 dot net @ 2007-02-18 22:48 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-07-12 14:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-18 22:48 [Bug math/4069] New: pow(-inf, nan) gives inf instead of nan aurelien at aurel32 dot net
2007-03-01 15:20 ` [Bug math/4069] " jakub at redhat dot com
2007-03-01 15:58 ` jakub at redhat dot com
2007-03-05 19:40 ` drepper at redhat dot com
2007-07-12 14:58 ` cvs-commit at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).