| 69 | } |
| 70 | |
| 71 | static inline void store64( void *dst, uint64_t w ) |
| 72 | { |
| 73 | #if defined(NATIVE_LITTLE_ENDIAN) && !defined(HAVE_ALIGNED_ACCESS_REQUIRED) |
| 74 | *( uint64_t * )( dst ) = w; |
| 75 | #else |
| 76 | uint8_t *p = ( uint8_t * )dst; |
| 77 | *p++ = ( uint8_t )w; w >>= 8; |
| 78 | *p++ = ( uint8_t )w; w >>= 8; |
| 79 | *p++ = ( uint8_t )w; w >>= 8; |
| 80 | *p++ = ( uint8_t )w; w >>= 8; |
| 81 | *p++ = ( uint8_t )w; w >>= 8; |
| 82 | *p++ = ( uint8_t )w; w >>= 8; |
| 83 | *p++ = ( uint8_t )w; w >>= 8; |
| 84 | *p++ = ( uint8_t )w; |
| 85 | #endif |
| 86 | } |
| 87 | |
| 88 | static inline uint64_t load48( const void *src ) |
| 89 | { |
no outgoing calls
no test coverage detected