aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2013-04-03 21:10:02 +0200
committerThomas Schwinge <thomas@codesourcery.com>2013-04-05 21:30:28 +0200
commitd91da4ce87cd571650f680c0d48d8d3441ec7d2f (patch)
tree87fcde1996c79f4c5b1fda922fbc89e53da8dbc2
parentbf0f50dfc6132738422c939a4d1a929ab74933c7 (diff)
downloadglibc-d91da4ce87cd571650f680c0d48d8d3441ec7d2f.tar
glibc-d91da4ce87cd571650f680c0d48d8d3441ec7d2f.tar.gz
glibc-d91da4ce87cd571650f680c0d48d8d3441ec7d2f.tar.bz2
glibc-d91da4ce87cd571650f680c0d48d8d3441ec7d2f.zip
Remove unreachable code.
The case of y == 0 is handled at the beginning of the function.
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/ieee754/dbl-64/e_pow.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ffcb953157..b96a33330d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2013-04-05 Thomas Schwinge <thomas@codesourcery.com>
+ * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
+ unreachable code.
+
* sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
definitions.
diff --git a/sysdeps/ieee754/dbl-64/e_pow.c b/sysdeps/ieee754/dbl-64/e_pow.c
index f8962a7dce..44d6f62398 100644
--- a/sysdeps/ieee754/dbl-64/e_pow.c
+++ b/sysdeps/ieee754/dbl-64/e_pow.c
@@ -153,8 +153,7 @@ __ieee754_pow(double x, double y) {
/* x>0 */
if (qx == 0x7ff00000) /* x= 2^-0x3ff */
- {if (y == 0) return NaNQ.x;
- return (y>0)?x:0; }
+ return y > 0 ? x : 0;
if (qy > 0x45f00000 && qy < 0x7ff00000) {
if (x == 1.0) return 1.0;