Go to the source code of this file.
Defines | |
#define | const_bswap16(x) |
#define | const_bswap32(x) |
#define | sys_lefloat(x) sys_bswapf(x) |
#define | sys_le32(x) sys_bswap32(x) |
#define | sys_le16(x) sys_bswap16(x) |
#define | sys_befloat(x) (x) |
#define | sys_be32(x) (x) |
#define | sys_be16(x) (x) |
#define | const_le32(x) const_bswap32(x) |
#define | const_le16(x) const_bswap16(x) |
#define | const_be32(x) (x) |
#define | const_be16(x) (x) |
Functions | |
static uint16_t | sys_bswap16 (uint16_t x) |
static uint32_t | sys_bswap32 (uint32_t x) |
static uint32_t | sys_bswapf (uint32_t x) |
#define const_bswap16 | ( | x | ) |
((uint16_t)( \ (((uint16_t)(x) & (uint16_t)0x00ffU) << 8) | \ (((uint16_t)(x) & (uint16_t)0xff00U) >> 8)))
Definition at line 8 of file bytesex.h.
Referenced by sys_bswap16().
#define const_bswap32 | ( | x | ) |
((uint32_t)( \ (((uint32_t)(x) & (uint32_t)0x000000ffUL) << 24) | \ (((uint32_t)(x) & (uint32_t)0x0000ff00UL) << 8) | \ (((uint32_t)(x) & (uint32_t)0x00ff0000UL) >> 8) | \ (((uint32_t)(x) & (uint32_t)0xff000000UL) >> 24)))
Definition at line 13 of file bytesex.h.
Referenced by sys_bswap32(), and sys_bswapf().
#define sys_be16 | ( | x | ) | (x) |
Definition at line 41 of file bytesex.h.
Referenced by set_df_fci(), set_ef_fci(), and set_fci().
#define sys_le16 | ( | x | ) | sys_bswap16(x) |
Definition at line 38 of file bytesex.h.
Referenced by byteswap_desc(), and get_endpoint().
#define sys_le32 | ( | x | ) | sys_bswap32(x) |
Definition at line 37 of file bytesex.h.
Referenced by _PC_to_RDR(), byteswap_desc(), and do_recv().
static uint16_t sys_bswap16 | ( | uint16_t | x | ) | [inline, static] |
Definition at line 20 of file bytesex.h.
References const_bswap16.
static uint32_t sys_bswap32 | ( | uint32_t | x | ) | [inline, static] |
Definition at line 25 of file bytesex.h.
References const_bswap32.
static uint32_t sys_bswapf | ( | uint32_t | x | ) | [inline, static] |
Definition at line 30 of file bytesex.h.
References const_bswap32.