iPXE
|
Byte-order swapping test functions. More...
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
uint16_t | test_bswap16 (uint16_t x) |
uint32_t | test_bswap32 (uint32_t x) |
uint64_t | test_bswap64 (uint64_t x) |
void | test_bswap16s (uint16_t *x) |
void | test_bswap32s (uint32_t *x) |
void | test_bswap64s (uint64_t *x) |
static void | byteswap_test_exec (void) |
Perform byte-order swapping. More... | |
Variables | |
struct self_test byteswap_test | __self_test |
Byte-order swapping self-test. More... | |
Byte-order swapping test functions.
Definition in file byteswap_test.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
Definition at line 42 of file byteswap_test.c.
References __bswap_16.
Referenced by byteswap_test_exec().
Definition at line 46 of file byteswap_test.c.
References __bswap_32.
Referenced by byteswap_test_exec().
Definition at line 50 of file byteswap_test.c.
References __bswap_64.
Referenced by byteswap_test_exec().
void test_bswap16s | ( | uint16_t * | x | ) |
Definition at line 54 of file byteswap_test.c.
Referenced by byteswap_test_exec().
void test_bswap32s | ( | uint32_t * | x | ) |
Definition at line 58 of file byteswap_test.c.
Referenced by byteswap_test_exec().
void test_bswap64s | ( | uint64_t * | x | ) |
Definition at line 62 of file byteswap_test.c.
Referenced by byteswap_test_exec().
|
static |
Perform byte-order swapping.
Definition at line 70 of file byteswap_test.c.
References ok, test_bswap16(), test_bswap16s(), test_bswap32(), test_bswap32s(), test_bswap64(), and test_bswap64s().
struct self_test byteswap_test __self_test |
Byte-order swapping self-test.
Definition at line 93 of file byteswap_test.c.