summaryrefslogtreecommitdiff
path: root/libm/w_pow.c
diff options
context:
space:
mode:
Diffstat (limited to 'libm/w_pow.c')
-rw-r--r--libm/w_pow.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libm/w_pow.c b/libm/w_pow.c
index 94d30bcec..09e0b5c2c 100644
--- a/libm/w_pow.c
+++ b/libm/w_pow.c
@@ -41,19 +41,19 @@
if(x==0.0){
if(y==0.0)
return __kernel_standard(x,y,20); /* pow(0.0,0.0) */
- if(finite(y)&&y<0.0)
+ if(isfinite(y)&&y<0.0)
return __kernel_standard(x,y,23); /* pow(0.0,negative) */
return z;
}
- if(!finite(z)) {
- if(finite(x)&&finite(y)) {
+ if(!isfinite(z)) {
+ if(isfinite(x)&&isfinite(y)) {
if(isnan(z))
return __kernel_standard(x,y,24); /* pow neg**non-int */
else
return __kernel_standard(x,y,21); /* pow overflow */
}
}
- if(z==0.0&&finite(x)&&finite(y))
+ if(z==0.0&&isfinite(x)&&isfinite(y))
return __kernel_standard(x,y,22); /* pow underflow */
return z;
#endif