77 ok (
test_bswap64 ( 0x123456789abcdef0ULL ) == 0xf0debc9a78563412ULL );
81 ok ( test16 == 0xcdab );
83 test32 = 0xabcdef01UL;
85 ok ( test32 == 0x01efcdabUL );
87 test64 = 0xabcdef0123456789ULL;
89 ok ( test64 == 0x8967452301efcdabULL );
#define __bswap_16(value)
Byte-swap a 16-bit value.
unsigned long long uint64_t
Self-test infrastructure.
const char * name
Test set name.
struct self_test byteswap_test __self_test
Byte-order swapping self-test.
static void byteswap_test_exec(void)
Perform byte-order swapping.
uint64_t test_bswap64(uint64_t x)
void test_bswap16s(uint16_t *x)
uint32_t test_bswap32(uint32_t x)
#define __bswap_32(value)
Byte-swap a 32-bit value.
uint16_t test_bswap16(uint16_t x)
void test_bswap64s(uint64_t *x)
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
void test_bswap32s(uint32_t *x)
#define __bswap_64(value)
Byte-swap a 64-bit value.