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.
This commit is contained in:
David Schultz 2012-01-20 14:44:21 +00:00
parent c75fdd302b
commit 7ea324df88
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=230380

View File

@ -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