projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
upgrade to latest upstream TRE regex code (0.8.0)
[musl]
/
src
/
math
/
sinhf.c
diff --git
a/src/math/sinhf.c
b/src/math/sinhf.c
index
fd11b84
..
b8d8822
100644
(file)
--- a/
src/math/sinhf.c
+++ b/
src/math/sinhf.c
@@
-15,7
+15,7
@@
#include "libm.h"
#include "libm.h"
-static const float
one = 1.0,
huge = 1.0e37;
+static const float huge = 1.0e37;
float sinhf(float x)
{
float sinhf(float x)
{
@@
-36,12
+36,12
@@
float sinhf(float x)
if (ix < 0x41100000) { /* |x|<9 */
if (ix < 0x39800000) /* |x|<2**-12 */
/* raise inexact, return x */
if (ix < 0x41100000) { /* |x|<9 */
if (ix < 0x39800000) /* |x|<2**-12 */
/* raise inexact, return x */
- if (huge+x >
one
)
+ if (huge+x >
1.0f
)
return x;
t = expm1f(fabsf(x));
if (ix < 0x3f800000)
return x;
t = expm1f(fabsf(x));
if (ix < 0x3f800000)
- return h*(2.0f*t - t*t/(t+
one
));
- return h*(t + t/(t+
one
));
+ return h*(2.0f*t - t*t/(t+
1.0f
));
+ return h*(t + t/(t+
1.0f
));
}
/* |x| in [9, logf(maxfloat)] return 0.5*exp(|x|) */
}
/* |x| in [9, logf(maxfloat)] return 0.5*exp(|x|) */