| 56 | } |
| 57 | |
| 58 | static inline void store32( void *dst, uint32_t w ) |
| 59 | { |
| 60 | #if defined(NATIVE_LITTLE_ENDIAN) && !defined(HAVE_ALIGNED_ACCESS_REQUIRED) |
| 61 | *( uint32_t * )( dst ) = w; |
| 62 | #else |
| 63 | uint8_t *p = ( uint8_t * )dst; |
| 64 | *p++ = ( uint8_t )w; w >>= 8; |
| 65 | *p++ = ( uint8_t )w; w >>= 8; |
| 66 | *p++ = ( uint8_t )w; w >>= 8; |
| 67 | *p++ = ( uint8_t )w; |
| 68 | #endif |
| 69 | } |
| 70 | |
| 71 | static inline void store64( void *dst, uint64_t w ) |
| 72 | { |
no outgoing calls
no test coverage detected