svn commit: r230380 - head/lib/libc/softfloat/bits64
David Schultz
das at FreeBSD.org
Fri Jan 20 14:44:22 UTC 2012
Author: das
Date: Fri Jan 20 14:44:21 2012
New Revision: 230380
URL: http://svn.freebsd.org/changeset/base/230380
Log:
Conditionalize the __floatunsisf and __floatunsidf functions, added in
NetBSD's rev 1.6 of this file, on !defined(SOFTFLOAT_FOR_GCC). These
functions are provided by libgcc, so we don't need them. This should
unbreak mips.
Modified:
head/lib/libc/softfloat/bits64/softfloat.c
Modified: head/lib/libc/softfloat/bits64/softfloat.c
==============================================================================
--- head/lib/libc/softfloat/bits64/softfloat.c Fri Jan 20 13:26:11 2012 (r230379)
+++ head/lib/libc/softfloat/bits64/softfloat.c Fri Jan 20 14:44:21 2012 (r230380)
@@ -1126,6 +1126,7 @@ float32 int32_to_float32( int32 a )
}
+#ifndef SOFTFLOAT_FOR_GCC /* __floatunsisf is in libgcc */
float32 uint32_to_float32( uint32 a )
{
if ( a == 0 ) return 0;
@@ -1133,6 +1134,7 @@ float32 uint32_to_float32( uint32 a )
return normalizeRoundAndPackFloat32( 0, 0x9D, a >> 1 );
return normalizeRoundAndPackFloat32( 0, 0x9C, a );
}
+#endif
/*
@@ -1158,6 +1160,7 @@ float64 int32_to_float64( int32 a )
}
+#ifndef SOFTFLOAT_FOR_GCC /* __floatunsidf is in libgcc */
float64 uint32_to_float64( uint32 a )
{
int8 shiftCount;
@@ -1168,6 +1171,7 @@ float64 uint32_to_float64( uint32 a )
return packFloat64( 0, 0x432 - shiftCount, zSig<<shiftCount );
}
+#endif
#ifdef FLOATX80
More information about the svn-src-head
mailing list