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

Function __hxcpp_align_set_float64

include/hx/StdLibs.h:632–651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630
631
632inline void __hxcpp_align_set_float64( unsigned char *base, int addr, double v)
633{
634 #ifdef HXCPP_ALIGN_FLOAT
635 if (addr & 3)
636 {
637 unsigned char *dest = base + addr;
638 const unsigned char *src = (const unsigned char *)&v;
639 dest[0] = src[0];
640 dest[1] = src[1];
641 dest[2] = src[2];
642 dest[3] = src[3];
643 dest[4] = src[4];
644 dest[5] = src[5];
645 dest[6] = src[6];
646 dest[7] = src[7];
647 }
648 else
649 #endif
650 *(double *)(base + addr) = v;
651}
652
653
654inline double __hxcpp_align_get_float64( unsigned char *base, int addr)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected