diff options
author | das <das@FreeBSD.org> | 2004-02-16 10:03:02 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2004-02-16 10:03:02 +0000 |
commit | d6261f9b0e9b101830abc724d31bd87c11108ba2 (patch) | |
tree | 0b73b1bdaa56560aa20e1b65d836d99ec3ed2a8f /lib | |
parent | d7b9eca798dc4148130a1df459fb246295d0eca6 (diff) | |
download | FreeBSD-src-d6261f9b0e9b101830abc724d31bd87c11108ba2.zip FreeBSD-src-d6261f9b0e9b101830abc724d31bd87c11108ba2.tar.gz |
Remove the code and an associated comment for gcc 1.x compatibility
and fix a typo in the !__GNUC__ case.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/i386/gen/ldexp.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/libc/i386/gen/ldexp.c b/lib/libc/i386/gen/ldexp.c index ac179df..b01b937 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); } |