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

* [Bug math/4069] pow(-inf, nan) gives inf instead of nan
  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 ` jakub at redhat dot com
  2007-03-01 15:58 ` jakub at redhat dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at redhat dot com @ 2007-03-01 15:20 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From jakub at redhat dot com  2007-03-01 15:19 -------
Testing a patch.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|aj at suse dot de           |jakub at redhat dot com
             Status|NEW                         |ASSIGNED


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

* [Bug math/4069] pow(-inf, nan) gives inf instead of nan
  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
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at redhat dot com @ 2007-03-01 15:58 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From jakub at redhat dot com  2007-03-01 15:57 -------
http://sources.redhat.com/ml/libc-hacker/2007-03/msg00000.html

-- 


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

* [Bug math/4069] pow(-inf, nan) gives inf instead of nan
  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
  3 siblings, 0 replies; 5+ messages in thread
From: drepper at redhat dot com @ 2007-03-05 19:40 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2007-03-05 19:40 -------
Fixed in cvs.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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

* [Bug math/4069] pow(-inf, nan) gives inf instead of nan
  2007-02-18 22:48 [Bug math/4069] New: pow(-inf, nan) gives inf instead of nan aurelien at aurel32 dot net
                   ` (2 preceding siblings ...)
  2007-03-05 19:40 ` drepper at redhat dot com
@ 2007-07-12 14:58 ` cvs-commit at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2007-07-12 14:58 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2007-07-12 14:58 -------
Subject: Bug 4069

CVSROOT:	/cvs/glibc
Module name:	libc
Branch: 	glibc-2_5-branch
Changes by:	jakub@sourceware.org	2007-07-12 14:58:06

Modified files:
	.              : ChangeLog 
	math           : libm-test.inc 
	sysdeps/i386/fpu: e_pow.S e_powf.S e_powl.S 
	sysdeps/ieee754/dbl-64: e_pow.c 
	sysdeps/x86_64/fpu: e_powl.S 

Log message:
	2007-03-01  Jakub Jelinek  <jakub@redhat.com>
	
	[BZ #4069]
	* sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Check for NaN
	earlier.
	* math/libm-test.inc (pow_test): Add more tests involving NaNs.
	
	* sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Avoid invalid exception
	for x qNaN and y either +-inf or non-integer value.
	* sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Likewise.
	* sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
	* sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/ChangeLog.diff?cvsroot=glibc&only_with_tag=glibc-2_5-branch&r1=1.10362.2.50&r2=1.10362.2.51
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/math/libm-test.inc.diff?cvsroot=glibc&only_with_tag=glibc-2_5-branch&r1=1.73&r2=1.73.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/sysdeps/i386/fpu/e_pow.S.diff?cvsroot=glibc&only_with_tag=glibc-2_5-branch&r1=1.7&r2=1.7.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/sysdeps/i386/fpu/e_powf.S.diff?cvsroot=glibc&only_with_tag=glibc-2_5-branch&r1=1.7&r2=1.7.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/sysdeps/i386/fpu/e_powl.S.diff?cvsroot=glibc&only_with_tag=glibc-2_5-branch&r1=1.7&r2=1.7.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/sysdeps/ieee754/dbl-64/e_pow.c.diff?cvsroot=glibc&only_with_tag=glibc-2_5-branch&r1=1.13&r2=1.13.8.1
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/sysdeps/x86_64/fpu/e_powl.S.diff?cvsroot=glibc&only_with_tag=glibc-2_5-branch&r1=1.2&r2=1.2.8.1



-- 


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).