From a94707138bad7c998d9b04477e2f644907fea9e5 Mon Sep 17 00:00:00 2001 From: David Schultz Date: Mon, 16 Feb 2004 10:03:02 +0000 Subject: [PATCH] Remove the code and an associated comment for gcc 1.x compatibility and fix a typo in the !__GNUC__ case. --- lib/libc/i386/gen/ldexp.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/libc/i386/gen/ldexp.c b/lib/libc/i386/gen/ldexp.c index ac179df0f747..b01b9378c758 100644 --- a/lib/libc/i386/gen/ldexp.c +++ b/lib/libc/i386/gen/ldexp.c @@ -49,8 +49,6 @@ __FBSDID("$FreeBSD$"); /* * We do the conversion in C to let gcc optimize it away, if possible. - * The "fxch ; fstp" stuff is because value is still on the stack - * (stupid 8087!). */ double ldexp (double value, int exp) @@ -58,17 +56,11 @@ ldexp (double value, int exp) double temp, texp, temp2; texp = exp; #ifdef __GNUC__ -#if __GNUC__ >= 2 __asm ("fscale " : "=u" (temp2), "=t" (temp) : "0" (texp), "1" (value)); #else - asm ("fscale ; fxch %%st(1) ; fstp%L1 %1 " - : "=f" (temp), "=0" (temp2) - : "0" (texp), "f" (value)); -#endif -#else -error unknown asm +#error unknown asm #endif return (temp); }