MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / GetFloatAligned

Function GetFloatAligned

include/hx/Scriptable.h:51–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50
51inline Float GetFloatAligned(const void *inPtr)
52{
53 #ifdef HXCPP_ALIGN_FLOAT
54 Float result;
55 int *dest = (int *)&result;
56 const int *src = (const int *)inPtr;
57 dest[0] = src[0];
58 dest[1] = src[1];
59 return result;
60 #else
61 return *(Float *)inPtr;
62 #endif
63}
64
65
66inline void StackContext::pushFloat(Float f)

Callers 7

doRunMethod · 0.85
doRunMethod · 0.85
runIntMethod · 0.85
runFloatMethod · 0.85
runStringMethod · 0.85
runObjectMethod · 0.85
getFloatMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected