diff options
author | nsz <nsz@port70.net> | 2012-03-19 19:14:32 +0100 |
---|---|---|
committer | nsz <nsz@port70.net> | 2012-03-19 19:14:32 +0100 |
commit | c3587effe27a3ac8c1406f064b7705963be9887a (patch) | |
tree | 18b297ebc221d92e2f345b36ec3a3470e2ea24f6 /src/math/__tanl.c | |
parent | eca1c35e5be967478c8fe9381c6f4652b6645d5e (diff) | |
download | musl-c3587effe27a3ac8c1406f064b7705963be9887a.tar.gz musl-c3587effe27a3ac8c1406f064b7705963be9887a.tar.bz2 musl-c3587effe27a3ac8c1406f064b7705963be9887a.tar.xz musl-c3587effe27a3ac8c1406f064b7705963be9887a.zip |
minor fix in __tanl (get sign properly)
Diffstat (limited to 'src/math/__tanl.c')
-rw-r--r-- | src/math/__tanl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/math/__tanl.c b/src/math/__tanl.c index e39e9df4..50ba2140 100644 --- a/src/math/__tanl.c +++ b/src/math/__tanl.c @@ -51,8 +51,7 @@ long double __tanl(long double x, long double y, int iy) { int i; iy = iy == 1 ? -1 : 1; /* XXX recover original interface */ - // FIXME: this is wrong, use copysign, signbit or union bithack - osign = x >= 0 ? 1.0 : -1.0; /* XXX slow, probably wrong for -0 */ + osign = copysignl(1.0, x); if (fabsl(x) >= 0.67434) { if (x < 0) { x = -x; |