From 76d76229ee0b1097f573d6bb24c164ca1f90c1c6 Mon Sep 17 00:00:00 2001 From: jmc Date: Mon, 4 Mar 2002 21:27:19 +0000 Subject: [PATCH] Unblock a few routines that are needed if 128bit support is being pulled in. --- lib/libc/softfloat/softfloat-macros | 4 +--- lib/libc/softfloat/softfloat.c | 9 ++++----- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/libc/softfloat/softfloat-macros b/lib/libc/softfloat/softfloat-macros index 7665ba10f1d7..cd53332eb67e 100644 --- a/lib/libc/softfloat/softfloat-macros +++ b/lib/libc/softfloat/softfloat-macros @@ -1,4 +1,4 @@ -/* $NetBSD: softfloat-macros,v 1.1 2000/06/06 08:15:09 bjh21 Exp $ */ +/* $NetBSD: softfloat-macros,v 1.2 2002/03/04 21:27:19 jmc Exp $ */ /* =============================================================================== @@ -581,7 +581,6 @@ static bits64 estimateDiv128To64( bits64 a0, bits64 a1, bits64 b ) } -#ifndef SOFTFLOAT_FOR_GCC /* Not used */ /* ------------------------------------------------------------------------------- Returns an approximation to the square root of the 32-bit significand given @@ -621,7 +620,6 @@ static bits32 estimateSqrt32( int16 aExp, bits32 a ) return ( (bits32) ( ( ( (bits64) a )<<31 ) / z ) ) + ( z>>1 ); } -#endif /* ------------------------------------------------------------------------------- diff --git a/lib/libc/softfloat/softfloat.c b/lib/libc/softfloat/softfloat.c index 6564bfa9aeb9..e1551714d465 100644 --- a/lib/libc/softfloat/softfloat.c +++ b/lib/libc/softfloat/softfloat.c @@ -1,4 +1,4 @@ -/* $NetBSD: softfloat.c,v 1.5 2001/03/13 08:15:14 ross Exp $ */ +/* $NetBSD: softfloat.c,v 1.6 2002/03/04 21:27:19 jmc Exp $ */ /* * This version hacked for use with gcc -msoft-float by bjh21. @@ -46,7 +46,7 @@ this code that are retained. #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: softfloat.c,v 1.5 2001/03/13 08:15:14 ross Exp $"); +__RCSID("$NetBSD: softfloat.c,v 1.6 2002/03/04 21:27:19 jmc Exp $"); #endif /* LIBC_SCCS and not lint */ #ifdef SOFTFLOAT_FOR_GCC @@ -100,7 +100,6 @@ specific. */ #include "softfloat-specialize" -#ifndef SOFTFLOAT_FOR_GCC /* Not used */ /* ------------------------------------------------------------------------------- Takes a 64-bit fixed-point value `absZ' with binary point between bits 6 @@ -204,7 +203,6 @@ static int64 roundAndPackInt64( flag zSign, bits64 absZ0, bits64 absZ1 ) return z; } -#endif /* ------------------------------------------------------------------------------- @@ -1286,6 +1284,8 @@ floatx80 int64_to_floatx80( int64 a ) #endif +#endif /* !SOFTFLOAT_FOR_GCC */ + #ifdef FLOAT128 /* @@ -1323,7 +1323,6 @@ float128 int64_to_float128( int64 a ) } #endif -#endif /* !SOFTFLOAT_FOR_GCC */ #ifndef SOFTFLOAT_FOR_GCC /* Not needed */ /*