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

Function __hxcpp_align_get_float32

include/hx/StdLibs.h:613–629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

611
612
613inline float __hxcpp_align_get_float32( unsigned char *base, int addr)
614{
615 #ifdef HXCPP_ALIGN_FLOAT
616 if (addr & 3)
617 {
618 float buf;
619 unsigned char *dest = (unsigned char *)&buf;
620 const unsigned char *src = base + addr;
621 dest[0] = src[0];
622 dest[1] = src[1];
623 dest[2] = src[2];
624 dest[3] = src[3];
625 return buf;
626 }
627 #endif
628 return *(float *)(base+addr);
629}
630
631
632inline void __hxcpp_align_set_float64( unsigned char *base, int addr, double v)

Callers 2

__hxcpp_memory_get_floatFunction · 0.85
__hxcpp_memory_get_f32Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected