| 611 | |
| 612 | |
| 613 | inline 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 | |
| 632 | inline void __hxcpp_align_set_float64( unsigned char *base, int addr, double v) |
no outgoing calls
no test coverage detected