diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2000-05-26 22:42:39 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2000-05-26 22:42:39 +0000 |
commit | 8887021868a19a9feb8d4cdb22148823ee42579b (patch) | |
tree | c3ac1cbf18fa5bd246106ad5d916cb7c03c048b9 /newlib/libm/math/e_log.c | |
parent | e8844e5d9f6a07f7846ad0766cc3ef6e08dce8f5 (diff) | |
download | cygnal-8887021868a19a9feb8d4cdb22148823ee42579b.tar.gz cygnal-8887021868a19a9feb8d4cdb22148823ee42579b.tar.bz2 cygnal-8887021868a19a9feb8d4cdb22148823ee42579b.zip |
2000-05-26 Marek Michalkiewicz <marekm@linux.org.pl>
* libm/common/s_expm1.c (expm1): Add curly braces, avoid warnings.
* libm/common/s_log1p.c (log1p): Likewise.
* libm/common/s_scalbn.c (scalbn): Likewise.
* libm/math/e_log.c: Likewise.
* libm/math/e_asin.c: Likewise.
* libm/math/ef_asin.c: Likewise.
* libm/math/e_j0.c (pzero, qzero): Remove redundant test.
* libm/math/e_j1.c (pone, qone): Likewise.
* libm/math/ef_j0.c (pzerof, qzerof): Likewise.
* libm/math/ef_j1.c (ponef, qonef): Likewise.
* libm/mathfp/e_j0.c (pzero, qzero): Likewise.
* libm/mathfp/e_j1.c (pone, qone): Likewise.
* libm/mathfp/ef_j0.c (pzerof, qzerof): Likewise.
* libm/mathfp/ef_j1.c (ponef, qonef): Likewise.
Diffstat (limited to 'newlib/libm/math/e_log.c')
-rw-r--r-- | newlib/libm/math/e_log.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libm/math/e_log.c b/newlib/libm/math/e_log.c index 774ca389f..72cddb2f8 100644 --- a/newlib/libm/math/e_log.c +++ b/newlib/libm/math/e_log.c @@ -117,8 +117,8 @@ 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*(0.5-0.33333333333333333*f); if(k==0) return f-R; else {dk=(double)k; return dk*ln2_hi-((R-dk*ln2_lo)-f);} |