]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove unreachable code.
authorThomas Schwinge <thomas@codesourcery.com>
Wed, 3 Apr 2013 19:10:02 +0000 (21:10 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Fri, 5 Apr 2013 19:30:28 +0000 (21:30 +0200)
The case of y == 0 is handled at the beginning of the function.

ChangeLog
sysdeps/ieee754/dbl-64/e_pow.c

index ffcb95315711145106971e60ee8b1bfb2703273d..b96a33330da4c1ac243a651dbfd672520e19f511 100644 (file)
--- 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.
 
index f8962a7dce24de172d540ee7b74776beb68520f9..44d6f62398899e4f016614ec067a1aa9e5cedbf8 100644 (file)
@@ -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;