This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hi!
The case of y == 0 is handled at the beginning of the function.
OK to commit?
* sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
unreachable code.
diff --git sysdeps/ieee754/dbl-64/e_pow.c sysdeps/ieee754/dbl-64/e_pow.c
index f8962a7..44d6f62 100644
--- sysdeps/ieee754/dbl-64/e_pow.c
+++ 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;
GrÃÃe,
Thomas
Attachment:
pgp2642eKI1Wt.pgp
Description: PGP signature
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |