| 593 | // --- Memory -------------------------------------------------------------------------- |
| 594 | |
| 595 | inline 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 | |
| 613 | inline float __hxcpp_align_get_float32( unsigned char *base, int addr) |
no outgoing calls
no test coverage detected