mirror of git://sourceware.org/git/glibc.git
Remove unreachable code.
The case of y == 0 is handled at the beginning of the function.
This commit is contained in:
parent
bf0f50dfc6
commit
d91da4ce87
|
@ -1,5 +1,8 @@
|
||||||
2013-04-05 Thomas Schwinge <thomas@codesourcery.com>
|
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
|
* sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
|
||||||
definitions.
|
definitions.
|
||||||
|
|
||||||
|
|
|
@ -153,8 +153,7 @@ __ieee754_pow(double x, double y) {
|
||||||
/* x>0 */
|
/* x>0 */
|
||||||
|
|
||||||
if (qx == 0x7ff00000) /* x= 2^-0x3ff */
|
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 (qy > 0x45f00000 && qy < 0x7ff00000) {
|
||||||
if (x == 1.0) return 1.0;
|
if (x == 1.0) return 1.0;
|
||||||
|
|
Loading…
Reference in New Issue