public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/369] New: pow problems on x86
@ 2004-09-06 12:24 vargaz at gmail dot com
  2004-12-18 15:37 ` [Bug math/369] " aj at suse dot de
                   ` (9 more replies)
  0 siblings, 10 replies; 15+ messages in thread
From: vargaz at gmail dot com @ 2004-09-06 12:24 UTC (permalink / raw)
  To: glibc-bugs

Consider the following test program:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
#include <stdio.h>
#include <math.h>

void main() {
        double d;

        d = pow (-2, 1E300);
        printf ("D: %f.\n", d);

        d = pow (-2, -1E300);
        printf ("D: %f.\n", d);
}
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Under x86 linux, this prints out:

D: nan.
D: nan

I think the answer should be +inf and 0, respectively. Both
solaris,
windows, and the IBM Accurate Portable Mathematical library
returns
these values, so I think this might be a bug in the assembly
language
pow routine in glibc.

-- 
           Summary: pow problems on x86
           Product: glibc
           Version: 2.3.2
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
        AssignedTo: aj at suse dot de
        ReportedBy: vargaz at gmail dot com
                CC: glibc-bugs at sources dot redhat dot com
  GCC host triplet: i686-pc-linux-gnu


http://sources.redhat.com/bugzilla/show_bug.cgi?id=369

------- 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] 15+ messages in thread
[parent not found: <bug-369-131@http.sourceware.org/bugzilla/>]

end of thread, other threads:[~2012-03-28 15:02 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-06 12:24 [Bug math/369] New: pow problems on x86 vargaz at gmail dot com
2004-12-18 15:37 ` [Bug math/369] " aj at suse dot de
2006-05-07 14:57 ` steven at gcc dot gnu dot org
2006-06-15  9:17 ` nikolay dot zhuravlev at auriga dot ru
2006-06-15  9:24 ` nikolay dot zhuravlev at auriga dot ru
2006-08-31 22:27 ` eberlein at us dot ibm dot com
2006-08-31 22:32 ` eberlein at us dot ibm dot com
2007-12-15  9:46 ` ismail at pardus dot org dot tr
2008-07-30  9:18 ` mtk dot manpages at gmail dot com
2008-07-30  9:18 ` mtk dot manpages at gmail dot com
2010-09-12  5:44 ` mtk dot manpages at gmail dot com
     [not found] <bug-369-131@http.sourceware.org/bugzilla/>
2012-02-22 21:27 ` jsm28 at gcc dot gnu.org
2012-03-23 16:54 ` bonzini at gnu dot org
2012-03-27 16:28 ` jsm28 at gcc dot gnu.org
2012-03-28 15:03 ` jsm28 at gcc dot gnu.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).