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

Function DoubleToBits

MathExtras.h:333–340  ·  view source on GitHub ↗

DoubleToBits - This function takes a double and returns the bit equivalent 64-bit integer. Note that copying doubles around changes the bits of NaNs on some hosts, notably x86, so this routine cannot be used if these bits are needed.

Source from the content-addressed store, hash-verified

331/// changes the bits of NaNs on some hosts, notably x86, so this
332/// routine cannot be used if these bits are needed.
333static inline uint64_t DoubleToBits(double Double) {
334 union {
335 uint64_t L;
336 double D;
337 } T;
338 T.D = Double;
339 return T.L;
340}
341
342/// FloatToBits - This function takes a float and returns the bit
343/// equivalent 32-bit integer. Note that copying floats 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…