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

Function __hxcpp_align_get_float64

include/hx/StdLibs.h:654–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

652
653
654inline double __hxcpp_align_get_float64( unsigned char *base, int addr)
655{
656 #ifdef HXCPP_ALIGN_FLOAT
657 if (addr & 3)
658 {
659 double buf;
660 unsigned char *dest = (unsigned char *)&buf;
661 const unsigned char *src = base + addr;
662 dest[0] = src[0];
663 dest[1] = src[1];
664 dest[2] = src[2];
665 dest[3] = src[3];
666 dest[4] = src[4];
667 dest[5] = src[5];
668 dest[6] = src[6];
669 dest[7] = src[7];
670 return buf;
671 }
672 #endif
673 return *(double *)(base+addr);
674}
675
676
677

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected