MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / normalizeFloatx80Subnormal

Function normalizeFloatx80Subnormal

src/softfloat/softfloat.cpp:1055–1066  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1053*----------------------------------------------------------------------------*/
1054
1055void normalizeFloatx80Subnormal( uint64_t aSig, int32_t *zExpPtr, uint64_t *zSigPtr )
1056{
1057 int8_t shiftCount;
1058
1059 shiftCount = countLeadingZeros64( aSig );
1060 *zSigPtr = aSig<<shiftCount;
1061#ifdef SOFTFLOAT_68K
1062 *zExpPtr = -shiftCount;
1063#else
1064 *zExpPtr = 1 - shiftCount;
1065#endif
1066}
1067
1068/*----------------------------------------------------------------------------
1069| Packs the sign `zSign', exponent `zExp', and significand `zSig' into an

Callers 15

floatx80_to_float32Function · 0.85
floatx80_to_float64Function · 0.85
floatx80_round32Function · 0.85
floatx80_round64Function · 0.85
addFloatx80SigsFunction · 0.85
floatx80_mulFunction · 0.85
floatx80_sglmulFunction · 0.85
floatx80_divFunction · 0.85
floatx80_sgldivFunction · 0.85
floatx80_remFunction · 0.85

Calls 1

countLeadingZeros64Function · 0.85

Tested by

no test coverage detected