reverts patches in softfloat
This commit is contained in:
parent
2edd68d1bd
commit
5d69b79232
|
@ -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;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue