release/src/linux/linux/arch/arm/nwfpe/softfloat.c
/*
-------------------------------------------------------------------------------
Returns the result of converting the 32-bit two's complement integer `a' to
the double-precision floating-point format.  The conversion is performed
according to the IEC/IEEE Standard for Binary Floating-point Arithmetic.
-------------------------------------------------------------------------------
*/
Returns the result of converting the 32-bit two's complement integer `a' to
the double-precision floating-point format.  The conversion is performed
according to the IEC/IEEE Standard for Binary Floating-point Arithmetic.
Returns the result of converting the 32 - bit two ' s complement integer ` a ' to the double - precision floating - point format . The conversion is performed according to the IEC / IEEE Standard for Binary Floating - point Arithmetic .
float64 int32_to_float64( int32 a )
{
    flag aSign;
    uint32 absA;
    int8 shiftCount;
    bits64 zSig;
    if ( a == 0 ) return 0;
    aSign = ( a < 0 );
    absA = aSign ? - a : a;
    shiftCount = countLeadingZeros32( absA ) + 21;
    zSig = absA;
    return packFloat64( aSign, 0x432 - shiftCount, zSig<<shiftCount );
}
float64 int32_to_float64 ( int32 a ) { flag aSign ; uint32 absA ; int8 shiftCount ; bits64 zSig ; if ( a == 0 ) return 0 ; aSign = ( a < 0 ) ; absA = aSign ? - a : a ; shiftCount = countLeadingZeros32 ( absA ) + 21 ; zSig = absA ; return packFloat64 ( aSign , 0x432 - shiftCount , zSig << shiftCount ) ; }
Returns the result of converting the 32-bit two's complement integer `a' to
the double-precision floating-point format.
Returns the result of converting the 32 - bit two ' s complement integer ` a ' to the double - precision floating - point format .