((uint64_t) \
((uint64_t)((uint8_t *)(x))[0] << 0) + \
((uint64_t)((uint8_t *)(x))[1] << 8) + \
((uint64_t)((uint8_t *)(x))[2] << 16) + \
((uint64_t)((uint8_t *)(x))[3] << 24) + \
((uint64_t)((uint8_t *)(x))[4] << 32) + \
((uint64_t)((uint8_t *)(x))[5] << 40) + \
((uint64_t)((uint8_t *)(x))[6] << 48) + \
((uint64_t)((uint8_t *)(x))[7] << 56)) \
: \
((uint64_t) \
((uint64_t)((uint8_t *)(x))[7] << 0) + \
((uint64_t)((uint8_t *)(x))[6] << 8) + \
((uint64_t)((uint8_t *)(x))[5] << 16) + \
((uint64_t)((uint8_t *)(x))[4] << 24) + \
((uint64_t)((uint8_t *)(x))[3] << 32) + \
((uint64_t)((uint8_t *)(x))[2] << 40) + \
((uint64_t)((uint8_t *)(x))[1] << 48) + \
((uint64_t)((uint8_t *)(x))[0] << 56)) )
Data is in little endian.
Definition: tsk_base.h:396