From eca1c35e5be967478c8fe9381c6f4652b6645d5e Mon Sep 17 00:00:00 2001 From: nsz Date: Mon, 19 Mar 2012 18:52:17 +0100 Subject: 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). --- src/math/__sinl.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/math/__sinl.c') 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 */ -- cgit 1.4.1