diff options
| author | Lucian Copeland <hierophect@gmail.com> | 2020-06-04 16:15:38 -0400 |
|---|---|---|
| committer | Lucian Copeland <hierophect@gmail.com> | 2020-06-04 16:15:38 -0400 |
| commit | a0977cac7b92233a3ea52404fe59f9a4a3d3ac4a (patch) | |
| tree | 2e8e7d182871589aaaf9cc72c58b24b5b7f77320 /lib/libm/kf_cos.c | |
| parent | d14e34449b5b70ea5e39938324e27af76498b0dd (diff) | |
| parent | fffe171d5fed98b8db6f2a59393987a8eb5313e9 (diff) | |
Merge remote-tracking branch 'upstream/master' into stm32-LSE-startup-fix
Diffstat (limited to 'lib/libm/kf_cos.c')
| -rw-r--r-- | lib/libm/kf_cos.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libm/kf_cos.c b/lib/libm/kf_cos.c index 691f9842f..518166490 100644 --- a/lib/libm/kf_cos.c +++ b/lib/libm/kf_cos.c @@ -17,7 +17,7 @@ * * Developed at SunPro, a Sun Microsystems, Inc. business. * Permission to use, copy, modify, and distribute this - * software is freely granted, provided that this notice + * software is freely granted, provided that this notice * is preserved. * ==================================================== */ @@ -25,9 +25,9 @@ #include "fdlibm.h" #ifdef __STDC__ -static const float +static const float #else -static float +static float #endif one = 1.0000000000e+00, /* 0x3f800000 */ C1 = 4.1666667908e-02, /* 0x3d2aaaab */ @@ -53,7 +53,7 @@ C6 = -1.1359647598e-11; /* 0xad47d74e */ } z = x*x; r = z*(C1+z*(C2+z*(C3+z*(C4+z*(C5+z*C6))))); - if(ix < 0x3e99999a) /* if |x| < 0.3 */ + if(ix < 0x3e99999a) /* if |x| < 0.3 */ return one - ((float)0.5*z - (z*r - x*y)); else { if(ix > 0x3f480000) { /* x > 0.78125 */ |
