5 #include "primitives.h"
9 softfloat_normRoundPackToF32( bool sign
, int_fast16_t exp
, uint_fast32_t sig
)
14 shiftCount
= softfloat_countLeadingZeros32( sig
) - 1;
16 if ( ( 7 <= shiftCount
) && ( (uint16_t) exp
< 0xFD ) ) {
17 uZ
.ui
= packToF32UI( sign
, sig
? exp
: 0, sig
<<( shiftCount
- 7 ) );
20 return softfloat_roundPackToF32( sign
, exp
, sig
<<shiftCount
);