This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/2678] pow returns incorrect results on underflow
- From: "vincent+libc at vinc17 dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 24 Sep 2009 10:43:38 -0000
- Subject: [Bug math/2678] pow returns incorrect results on underflow
- References: <20060521003011.2678.jsm28@gcc.gnu.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From vincent+libc at vinc17 dot org 2009-09-24 10:43 -------
(In reply to comment #3)
> Moreover when compiling with -O1 with GCC 4.3.2 (i.e., when constant folding
> is activated)
It seems that constant folding on pow() isn't done by GCC yet. I interpret the
change due to -O1 by an optimization like pow(x,3) -> x * x * x (and glibc isn't
concerned since this is a GCC optimization).
--
http://sourceware.org/bugzilla/show_bug.cgi?id=2678
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.