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

Function normalizeFloat64Subnormal

src/softfloat/softfloat.cpp:883–892  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

881*----------------------------------------------------------------------------*/
882
883static void
884 normalizeFloat64Subnormal(uint64_t aSig, int *zExpPtr, uint64_t *zSigPtr)
885{
886 int8_t shiftCount;
887
888 shiftCount = countLeadingZeros64( aSig ) - 11;
889 *zSigPtr = aSig<<shiftCount;
890 *zExpPtr = 1 - shiftCount;
891
892}
893
894/*----------------------------------------------------------------------------
895| Packs the sign `zSign', exponent `zExp', and significand `zSig' into a

Callers 1

float64_to_floatx80Function · 0.85

Calls 1

countLeadingZeros64Function · 0.85

Tested by

no test coverage detected