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

Function __hxcpp_align_set_float32

include/hx/StdLibs.h:595–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593// --- Memory --------------------------------------------------------------------------
594
595inline void __hxcpp_align_set_float32( unsigned char *base, int addr, float v)
596{
597 #ifdef HXCPP_ALIGN_FLOAT
598 if (addr & 3)
599 {
600 const unsigned char *src = (const unsigned char *)&v;
601 unsigned char *dest = base + addr;
602 dest[0] = src[0];
603 dest[1] = src[1];
604 dest[2] = src[2];
605 dest[3] = src[3];
606 }
607 else
608 #endif
609 *(float *)(base+addr) = v;
610}
611
612
613inline float __hxcpp_align_get_float32( unsigned char *base, int addr)

Callers 2

__hxcpp_memory_set_floatFunction · 0.85
__hxcpp_memory_set_f32Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected