77 ok (
test_bswap64 ( 0x123456789abcdef0ULL ) == 0xf0debc9a78563412ULL );
81 ok ( test16 == 0xcdab );
83 test32 = 0xabcdef01UL;
85 ok ( test32 == 0x01efcdabUL );
87 test64 = 0xabcdef0123456789ULL;
89 ok ( test64 == 0x8967452301efcdabULL );
unsigned long long uint64_t
uint16_t test_bswap16(uint16_t x)
uint64_t test_bswap64(uint64_t x)
void test_bswap64s(uint64_t *x)
void test_bswap32s(uint32_t *x)
uint32_t test_bswap32(uint32_t x)
static void byteswap_test_exec(void)
Perform byte-order swapping.
void test_bswap16s(uint16_t *x)
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define __bswap_64(value)
Byte-swap a 64-bit value.
#define __bswap_16(value)
Byte-swap a 16-bit value.
#define __bswap_32(value)
Byte-swap a 32-bit value.
Self-test infrastructure.
#define __self_test
Declare a self-test.