summaryrefslogtreecommitdiff
path: root/src/math/__cosl.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/__cosl.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/__cosl.c')
-rw-r--r--src/math/__cosl.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/math/__cosl.c b/src/math/__cosl.c
index 9ea51ecf..80036ddb 100644
--- a/src/math/__cosl.c
+++ b/src/math/__cosl.c
@@ -43,17 +43,8 @@
*/
static const double one = 1.0;
-// FIXME
-/* Long double constants are slow on these arches, and broken on i386. */
-static const volatile double
-C1hi = 0.041666666666666664, /* 0x15555555555555.0p-57 */
-C1lo = 2.2598839032744733e-18; /* 0x14d80000000000.0p-111 */
-#define C1 ((long double)C1hi + C1lo)
-
-#if 0
static const long double
C1 = 0.0416666666666666666136L; /* 0xaaaaaaaaaaaaaa9b.0p-68 */
-#endif
static const double
C2 = -0.0013888888888888874, /* -0x16c16c16c16c10.0p-62 */