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

Function SetFloatAligned

include/hx/Scriptable.h:39–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38
39inline void SetFloatAligned(void *inPtr, const Float &inValue)
40{
41 #ifdef HXCPP_ALIGN_FLOAT
42 int *dest = (int *)inPtr;
43 const int *src = (const int *)&inValue;
44 dest[1] = src[1];
45 #else
46 *(Float *)inPtr = inValue;
47 #endif
48}
49
50
51inline Float GetFloatAligned(const void *inPtr)

Callers 6

doRunMethod · 0.85
doRunMethod · 0.85
runVoidMethod · 0.85
setInFrameMethod · 0.85
pushFloatMethod · 0.85
returnFloatMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected