summaryrefslogtreecommitdiff
path: root/sysdeps/libm-ieee754/e_log.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-12-13 12:14:18 +0000
committerUlrich Drepper <drepper@redhat.com>1998-12-13 12:14:18 +0000
commit3bb266e0101d17db7812daef1a7fe0aaa97b7e47 (patch)
tree4eb14893ab77764615fc595322ae4fd3dba8c039 /sysdeps/libm-ieee754/e_log.c
parent70b0abbaa2c30fb181d254f00b37cde027140878 (diff)
downloadglibc-3bb266e0101d17db7812daef1a7fe0aaa97b7e47.tar.gz
Update.
* sysdeps/alpha/fpu/fsetexcptflg.c: Avoid -Wparentheses warning. * sysdeps/libm-ieee754/s_expm1.c (__expm1): Avoid -Wparentheses warning. * sysdeps/libm-ieee754/s_log1p.c (__log1p): Likewise. * sysdeps/libm-ieee754/e_logf.c (__ieee754_logf): Likewise. * sysdeps/libm-ieee754/s_expm1f.c (__expm1f): Likewise. * sysdeps/libm-ieee754/e_log.c (__ieee754_log): Likewise. * sysdeps/libm-ieee754/s_log1pf.c (__log1pf): Likewise. 1998-12-13 Andreas Jaeger <aj@arthur.rhein-neckar.de>
Diffstat (limited to 'sysdeps/libm-ieee754/e_log.c')
-rw-r--r--sysdeps/libm-ieee754/e_log.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sysdeps/libm-ieee754/e_log.c b/sysdeps/libm-ieee754/e_log.c
index 38ea069c46..851bd30198 100644
--- a/sysdeps/libm-ieee754/e_log.c
+++ b/sysdeps/libm-ieee754/e_log.c
@@ -128,8 +128,10 @@ static double zero = 0.0;
k += (i>>20);
f = x-1.0;
if((0x000fffff&(2+hx))<3) { /* |f| < 2**-20 */
- if(f==zero) if(k==0) return zero; else {dk=(double)k;
- return dk*ln2_hi+dk*ln2_lo;}
+ if(f==zero) {
+ if(k==0) return zero; else {dk=(double)k;
+ return dk*ln2_hi+dk*ln2_lo;}
+ }
R = f*f*(half-0.33333333333333333*f);
if(k==0) return f-R; else {dk=(double)k;
return dk*ln2_hi-((R-dk*ln2_lo)-f);}