summaryrefslogtreecommitdiff
path: root/src/math/__sinl.c
diff options
context:
space:
mode:
authornsz <nsz@port70.net>2012-03-19 18:52:17 +0100
committernsz <nsz@port70.net>2012-03-19 18:52:17 +0100
commiteca1c35e5be967478c8fe9381c6f4652b6645d5e (patch)
treee55363208d24a68508031e424549fa50258e3d1f /src/math/__sinl.c
parent9a810cb6851e9707b86ae3e5af5f265da3d6e6a1 (diff)
downloadmusl-eca1c35e5be967478c8fe9381c6f4652b6645d5e.tar.gz
remove long double const workarounds
Some long double consts were stored in two doubles as a workaround for x86_64 and i386 with the following comment: /* Long double constants are slow on these arches, and broken on i386. */ This is most likely old gcc bug related to the default x87 fpu precision setting (it's double instead of double extended on BSD).
Diffstat (limited to 'src/math/__sinl.c')
-rw-r--r--src/math/__sinl.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/math/__sinl.c b/src/math/__sinl.c
index 71851d81..67c4bdc5 100644
--- a/src/math/__sinl.c
+++ b/src/math/__sinl.c
@@ -26,17 +26,8 @@
static const double half = 0.5;
-// FIXME
-/* Long double constants are slow on these arches, and broken on i386. */
-static const volatile double
-S1hi = -0.16666666666666666, /* -0x15555555555555.0p-55 */
-S1lo = -9.2563760475949941e-18; /* -0x15580000000000.0p-109 */
-#define S1 ((long double)S1hi + S1lo)
-
-#if 0
static const long double
S1 = -0.166666666666666666671L; /* -0xaaaaaaaaaaaaaaab.0p-66 */
-#endif
static const double
S2 = 0.0083333333333333332, /* 0x11111111111111.0p-59 */