reverts patches in softfloat

This commit is contained in:
Eyck-Alexander Jentzsch 2024-07-30 13:30:21 +02:00
parent 2edd68d1bd
commit 5d69b79232
1 changed files with 7 additions and 17 deletions

View File

@ -92,14 +92,11 @@ float32_t
goto infProdArg; goto infProdArg;
} }
if ( expC == 0xFF ) { if ( expC == 0xFF ) {
// expC indicates special value
if ( sigC ) { if ( sigC ) {
//uiC is quiet NaN
uiZ = 0; uiZ = 0;
goto propagateNaN_ZC; goto propagateNaN_ZC;
} }
//uiC is +- infinity uiZ = uiC;
uiZ = (uiC & ~(1UL << 31)) | ((unsigned long)signC << 31); //set sign bit
goto uiZ; goto uiZ;
} }
/*------------------------------------------------------------------------ /*------------------------------------------------------------------------
@ -212,22 +209,15 @@ float32_t
/*------------------------------------------------------------------------ /*------------------------------------------------------------------------
*------------------------------------------------------------------------*/ *------------------------------------------------------------------------*/
zeroProd: zeroProd:
if(expC | sigC){ uiZ = uiC;
//3rd operand != 0 if ( ! (expC | sigC) && (signProd != signC) ) {
uiZ = (uiC & ~(1UL << 31)) | ((unsigned long)(signC) << 31); //set sign bit
}
else {
//3rd operand == +-0
if (signProd != signC) {
completeCancellation: completeCancellation:
uiZ = packToF32UI((softfloat_roundingMode == softfloat_round_min), 0, 0 ); uiZ =
goto uiZ; packToF32UI(
} (softfloat_roundingMode == softfloat_round_min), 0, 0 );
uiZ = (uiC & ~(1UL << 31)) | ((unsigned long)signC << 31); //set sign bit
} }
uiZ: uiZ:
uZ.ui = uiZ; uZ.ui = uiZ;
return uZ.f; return uZ.f;
} }