5 #include "primitives.h"
9 softfloat_normRoundPackToF64( bool sign
, int_fast16_t exp
, uint_fast64_t sig
)
14 shiftCount
= softfloat_countLeadingZeros64( sig
) - 1;
16 if ( ( 10 <= shiftCount
) && ( (uint16_t) exp
< 0x7FD ) ) {
17 uZ
.ui
= packToF64UI( sign
, sig
? exp
: 0, sig
<<( shiftCount
- 10 ) );
20 return softfloat_roundPackToF64( sign
, exp
, sig
<<shiftCount
);