MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / getNormalizedSignificand

Method getNormalizedSignificand

source/util/hex_float.h:597–605  ·  view source on GitHub ↗

Returns the signficand after it has been normalized.

Source from the content-addressed store, hash-verified

595
596 // Returns the signficand after it has been normalized.
597 const uint_type getNormalizedSignificand() const {
598 int_type unbiased_exponent = getUnbiasedNormalizedExponent();
599 uint_type significand = getSignificandBits();
600 for (int_type i = unbiased_exponent; i <= min_exponent; ++i) {
601 significand = static_cast<uint_type>(significand << 1);
602 }
603 significand &= fraction_encode_mask;
604 return significand;
605 }
606
607 // Returns true if this number represents a negative value.
608 bool isNegative() const { return (getBits() & sign_mask) != 0; }

Callers 1

normalized_significandFunction · 0.80

Calls

no outgoing calls

Tested by 1

normalized_significandFunction · 0.64