release/src/linux/linux/arch/arm/nwfpe/softfloat.c
/*
-------------------------------------------------------------------------------
Takes an abstract floating-point value having sign `zSign', exponent `zExp',
and significand `zSig', and returns the proper single-precision floating-
point value corresponding to the abstract input.  This routine is just like
`roundAndPackFloat32' except that `zSig' does not have to be normalized in
any way.  In all cases, `zExp' must be 1 less than the ``true'' floating-
point exponent.
-------------------------------------------------------------------------------
*/
Takes an abstract floating-point value having sign `zSign', exponent `zExp',
and significand `zSig', and returns the proper single-precision floating
point value corresponding to the abstract input.  This routine is just like
`roundAndPackFloat32' except that `zSig' does not have to be normalized in
any way.  In all cases, `zExp' must be 1 less than the ``true'' floating
point exponent.
Takes an abstract floating - point value having sign ` zSign ' exponent ` zExp ' and significand ` zSig ' and returns the proper single - precision floating point value corresponding to the abstract input . This routine is just like ` roundAndPackFloat32 ' except that ` zSig ' does not have to be normalized in any way . In all cases ` zExp ' must be 1 less than the ` ` true ' ' floating point exponent .
static float32
 normalizeRoundAndPackFloat32( flag zSign, int16 zExp, bits32 zSig )
{
    int8 shiftCount;
    shiftCount = countLeadingZeros32( zSig ) - 1;
    return roundAndPackFloat32( zSign, zExp - shiftCount, zSig<<shiftCount );
}
static float32 normalizeRoundAndPackFloat32 ( flag zSign , int16 zExp , bits32 zSig ) { int8 shiftCount ; shiftCount = countLeadingZeros32 ( zSig ) - 1 ; return roundAndPackFloat32 ( zSign , zExp - shiftCount , zSig << shiftCount ) ; }
Takes an abstract floating-point value having sign `zSign', exponent `zExp',
and significand `zSig', and returns the proper single-precision floating
point value corresponding to the abstract input.
Takes an abstract floating - point value having sign ` zSign ' exponent ` zExp ' and significand ` zSig ' and returns the proper single - precision floating point value corresponding to the abstract input .