From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18434 invoked by alias); 6 Sep 2004 12:24:00 -0000 Mailing-List: contact glibc-bugs-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sources.redhat.com Received: (qmail 18389 invoked by uid 48); 6 Sep 2004 12:23:52 -0000 Date: Mon, 06 Sep 2004 12:24:00 -0000 From: "vargaz at gmail dot com" To: glibc-bugs@sources.redhat.com Message-ID: <20040906122341.369.vargaz@gmail.com> Reply-To: sourceware-bugzilla@sources.redhat.com Subject: [Bug math/369] New: pow problems on x86 X-Bugzilla-Reason: CC X-SW-Source: 2004-09/txt/msg00026.txt.bz2 List-Id: Consider the following test program: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< #include #include 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.