Only include roundAndPackInt32(), roundAndPackInt64() and estimateSqrt32()
if we actually need them for 80/128-bit support. I'm not sure this is Right, but I suspect the #ifdefs around here need revising to handle sparc64 nicely anyway. Still, it compiles on ARM again now.
This commit is contained in:
parent
d5f39a2d9c
commit
6b92497159
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: softfloat-macros,v 1.2 2002/03/04 21:27:19 jmc Exp $ */
|
||||
/* $NetBSD: softfloat-macros,v 1.3 2002/03/10 14:15:08 bjh21 Exp $ */
|
||||
|
||||
/*
|
||||
===============================================================================
|
||||
|
@ -581,6 +581,7 @@ static bits64 estimateDiv128To64( bits64 a0, bits64 a1, bits64 b )
|
|||
|
||||
}
|
||||
|
||||
#if !defined(SOFTFLOAT_FOR_GCC) || defined(FLOATX80) || defined(FLOAT128)
|
||||
/*
|
||||
-------------------------------------------------------------------------------
|
||||
Returns an approximation to the square root of the 32-bit significand given
|
||||
|
@ -620,6 +621,7 @@ static bits32 estimateSqrt32( int16 aExp, bits32 a )
|
|||
return ( (bits32) ( ( ( (bits64) a )<<31 ) / z ) ) + ( z>>1 );
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
-------------------------------------------------------------------------------
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: softfloat.c,v 1.6 2002/03/04 21:27:19 jmc Exp $ */
|
||||
/* $NetBSD: softfloat.c,v 1.7 2002/03/10 14:15:09 bjh21 Exp $ */
|
||||
|
||||
/*
|
||||
* This version hacked for use with gcc -msoft-float by bjh21.
|
||||
|
@ -46,7 +46,7 @@ this code that are retained.
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
__RCSID("$NetBSD: softfloat.c,v 1.6 2002/03/04 21:27:19 jmc Exp $");
|
||||
__RCSID("$NetBSD: softfloat.c,v 1.7 2002/03/10 14:15:09 bjh21 Exp $");
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
#ifdef SOFTFLOAT_FOR_GCC
|
||||
|
@ -100,6 +100,7 @@ specific.
|
|||
*/
|
||||
#include "softfloat-specialize"
|
||||
|
||||
#if !defined(SOFTFLOAT_FOR_GCC) || defined(FLOATX80) || defined(FLOAT128)
|
||||
/*
|
||||
-------------------------------------------------------------------------------
|
||||
Takes a 64-bit fixed-point value `absZ' with binary point between bits 6
|
||||
|
@ -203,6 +204,7 @@ static int64 roundAndPackInt64( flag zSign, bits64 absZ0, bits64 absZ1 )
|
|||
return z;
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
-------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue