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

Function normalizeFloat32Subnormal

src/softfloat/softfloat.cpp:698–707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

696*----------------------------------------------------------------------------*/
697
698static void
699 normalizeFloat32Subnormal(uint32_t aSig, int *zExpPtr, uint32_t *zSigPtr)
700{
701 int8_t shiftCount;
702
703 shiftCount = countLeadingZeros32( aSig ) - 8;
704 *zSigPtr = aSig<<shiftCount;
705 *zExpPtr = 1 - shiftCount;
706
707}
708
709/*----------------------------------------------------------------------------
710| Packs the sign `zSign', exponent `zExp', and significand `zSig' into a

Callers 1

float32_to_floatx80Function · 0.85

Calls 1

countLeadingZeros32Function · 0.85

Tested by

no test coverage detected