MCPcopy Create free account
hub / github.com/capstone-engine/capstone / BitsToFloat

Function BitsToFloat

MathExtras.h:320–327  ·  view source on GitHub ↗

BitsToFloat - This function takes a 32-bit integer and returns the bit equivalent float.

Source from the content-addressed store, hash-verified

318/// BitsToFloat - This function takes a 32-bit integer and returns the bit
319/// equivalent float.
320static inline float BitsToFloat(uint32_t Bits) {
321 union {
322 uint32_t I;
323 float F;
324 } T;
325 T.I = Bits;
326 return T.F;
327}
328
329/// DoubleToBits - This function takes a double and returns the bit
330/// equivalent 64-bit integer. Note that copying doubles around

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…