public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "vargaz at gmail dot com" <sourceware-bugzilla@sources.redhat.com> To: glibc-bugs@sources.redhat.com Subject: [Bug math/369] New: pow problems on x86 Date: Mon, 06 Sep 2004 12:24:00 -0000 [thread overview] Message-ID: <20040906122341.369.vargaz@gmail.com> (raw) 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.
next reply other threads:[~2004-09-06 12:24 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-09-06 12:24 vargaz at gmail dot com [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20040906122341.369.vargaz@gmail.com \ --to=sourceware-bugzilla@sources.redhat.com \ --cc=glibc-bugs@sources.redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).