projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add clock id macros for a number of new(ish) Linux-specific clocks
[musl]
/
src
/
math
/
__log1pf.h
diff --git
a/src/math/__log1pf.h
b/src/math/__log1pf.h
index
110acec
..
f2fbef2
100644
(file)
--- a/
src/math/__log1pf.h
+++ b/
src/math/__log1pf.h
@@
-22,14
+22,14
@@
Lg4 = 0xf89e26.0p-26; /* 0.24279078841 */
static inline float __log1pf(float f)
{
static inline float __log1pf(float f)
{
- float hfsq,s,z,R,w,t1,t2;
+ float
_t
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;
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);
}
return s*(hfsq+R);
}