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:
parent
c75fdd302b
commit
7ea324df88
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=230380
@ -1126,6 +1126,7 @@ float32 int32_to_float32( int32 a )
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef SOFTFLOAT_FOR_GCC /* __floatunsisf is in libgcc */
|
||||||
float32 uint32_to_float32( uint32 a )
|
float32 uint32_to_float32( uint32 a )
|
||||||
{
|
{
|
||||||
if ( a == 0 ) return 0;
|
if ( a == 0 ) return 0;
|
||||||
@ -1133,6 +1134,7 @@ float32 uint32_to_float32( uint32 a )
|
|||||||
return normalizeRoundAndPackFloat32( 0, 0x9D, a >> 1 );
|
return normalizeRoundAndPackFloat32( 0, 0x9D, a >> 1 );
|
||||||
return normalizeRoundAndPackFloat32( 0, 0x9C, a );
|
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 )
|
float64 uint32_to_float64( uint32 a )
|
||||||
{
|
{
|
||||||
int8 shiftCount;
|
int8 shiftCount;
|
||||||
@ -1168,6 +1171,7 @@ float64 uint32_to_float64( uint32 a )
|
|||||||
return packFloat64( 0, 0x432 - shiftCount, zSig<<shiftCount );
|
return packFloat64( 0, 0x432 - shiftCount, zSig<<shiftCount );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef FLOATX80
|
#ifdef FLOATX80
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user