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

Method getFloatBits

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

Source from the content-addressed store, hash-verified

342 }
343
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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected