From: daniel Date: Sun, 4 Jan 2015 16:12:42 +0000 (+0000) Subject: remove code for ancient gcc. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=84938a7b9c572efc85c2b06e24f6122d8cc98702;p=openbsd remove code for ancient gcc. ok millert@, kettenis@ --- diff --git a/lib/libc/arch/amd64/gen/ldexp.c b/lib/libc/arch/amd64/gen/ldexp.c index 9769dd67cc1..bfd89d8781c 100644 --- a/lib/libc/arch/amd64/gen/ldexp.c +++ b/lib/libc/arch/amd64/gen/ldexp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ldexp.c,v 1.3 2013/11/12 06:05:17 deraadt Exp $ */ +/* $OpenBSD: ldexp.c,v 1.4 2015/01/04 16:12:42 daniel Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -42,14 +42,8 @@ double ldexp(double value, int exp) { double temp; -#if __GNUC__ >= 2 __asm ("fscale" : "=t" (temp) : "0" (value), "u" ((double)exp)); -#else - __asm ("fscale; fstp %%st(1)" - : "=f" (temp) - : "f" (value), "0" ((double)exp)); -#endif return (temp); } diff --git a/lib/libc/arch/i386/gen/ldexp.c b/lib/libc/arch/i386/gen/ldexp.c index 3144cc3cf20..7fc04aa619a 100644 --- a/lib/libc/arch/i386/gen/ldexp.c +++ b/lib/libc/arch/i386/gen/ldexp.c @@ -1,3 +1,4 @@ +/* $OpenBSD: ldexp.c,v 1.8 2015/01/04 16:12:42 daniel Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. @@ -40,14 +41,8 @@ double ldexp(double value, int exp) { double temp; -#if __GNUC__ >= 2 __asm ("fscale" : "=t" (temp) : "0" (value), "u" ((double)exp)); -#else - __asm ("fscale; fstp %%st(1)" - : "=f" (temp) - : "f" (value), "0" ((double)exp)); -#endif return (temp); }