about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2011-12-06 11:10:06 +0100
committerAndreas Schwab <schwab@linux-m68k.org>2011-12-06 11:12:01 +0100
commit850fb039cec802072f70ed9763927881bbbf639c (patch)
tree6d9fa425127862bc9b383dabef145d1a049cbb0f
parent52ad36a21973c0b4fbc16b7104bbffec765e5a23 (diff)
downloadglibc-850fb039cec802072f70ed9763927881bbbf639c.tar.gz
glibc-850fb039cec802072f70ed9763927881bbbf639c.tar.xz
glibc-850fb039cec802072f70ed9763927881bbbf639c.zip
Fix a wrong constant in powerpc hypot implementation
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/powerpc/fpu/e_hypot.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f4b3460a83..73e9911d85 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
+
+	[BZ #13472]
+	* sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
+
 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
 
 	* sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
diff --git a/sysdeps/powerpc/fpu/e_hypot.c b/sysdeps/powerpc/fpu/e_hypot.c
index a8d67d875e..3731c58a30 100644
--- a/sysdeps/powerpc/fpu/e_hypot.c
+++ b/sysdeps/powerpc/fpu/e_hypot.c
@@ -26,7 +26,7 @@ static const double two500  = 3.2733906078961419e+150;
 static const double two600  = 4.149515568880993e+180;
 static const double two1022 = 4.49423283715579e+307;
 static const double twoM500 = 3.054936363499605e-151;
-static const double twoM600 = 4.616489308892868e-128;
+static const double twoM600 = 2.4099198651028841e-181;
 static const double pdnum   = 2.225073858507201e-308;
 
 /* __ieee754_hypot(x,y)