projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
support ld80 pseudo-denormal invalid bit patterns; treat them as nan
[oweals/musl.git]
/
src
/
math
/
__log1pf.h
diff --git
a/src/math/__log1pf.h
b/src/math/__log1pf.h
index 110acecbe8dc99fe3eba9a4e197eda9699578b96..99492c5a1ac9b892628d79b61f38df37eb1a85de 100644
(file)
--- a/
src/math/__log1pf.h
+++ b/
src/math/__log1pf.h
@@
-24,12
+24,12
@@
static inline float __log1pf(float f)
{
float hfsq,s,z,R,w,t1,t2;
- s = f/(
(float)2.0+
f);
+ s = f/(
2.0f +
f);
z = s*s;
w = z*z;
t1 = w*(Lg2+w*Lg4);
t2 = z*(Lg1+w*Lg3);
R = t2+t1;
- hfsq =
(float)0.5*f*
f;
+ hfsq =
0.5f * f *
f;
return s*(hfsq+R);
}