projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
math: tan cleanups
[musl]
/
src
/
math
/
__tandf.c
diff --git
a/src/math/__tandf.c
b/src/math/__tandf.c
index
3e632fd
..
25047ee
100644
(file)
--- a/
src/math/__tandf.c
+++ b/
src/math/__tandf.c
@@
-25,7
+25,7
@@
static const double T[] = {
0x1362b9bf971bcd.0p-59, /* 0.00946564784943673166728 */
};
0x1362b9bf971bcd.0p-59, /* 0.00946564784943673166728 */
};
-float __tandf(double x, int
iy
)
+float __tandf(double x, int
odd
)
{
double_t z,r,w,s,t,u;
{
double_t z,r,w,s,t,u;
@@
-50,6
+50,5
@@
float __tandf(double x, int iy)
s = z*x;
u = T[0] + z*T[1];
r = (x + s*u) + (s*w)*(t + w*r);
s = z*x;
u = T[0] + z*T[1];
r = (x + s*u) + (s*w)*(t + w*r);
- if(iy==1) return r;
- else return -1.0/r;
+ return odd ? -1.0/r : r;
}
}