MCPcopy Create free account
hub / github.com/Tracktion/choc / isZero

Method isZero

choc/text/choc_FloatToString.h:346–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344 static uint64_t getFloatBits (double value) { uint64_t i; memcpy (&i, &value, sizeof (i)); return i; }
345 static uint64_t getFloatBits (float value) { uint32_t i; memcpy (&i, &value, sizeof (i)); return i; }
346 static bool isZero (uint64_t floatBits) { return (floatBits & (exponentMask | significandMask)) == 0; }
347
348 static constexpr int defaultNumDecimalPlaces = 324;
349 static constexpr int numSignificandBits = sizeof (FloatOrDouble) == 8 ? 52 : 23;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected