This header file provides interfaces of the system endianness support.
More...
#include <sys/cdefs.h>
#include <sys/_types.h>
#include <machine/endian.h>
Go to the source code of this file.
|
#define | _UINT8_T_DECLARED |
|
#define | _UINT16_T_DECLARED |
|
#define | _UINT32_T_DECLARED |
|
#define | _UINT64_T_DECLARED |
|
#define | bswap16(x) __bswap16(x) |
|
#define | bswap32(x) __bswap32(x) |
|
#define | bswap64(x) __bswap64(x) |
|
#define | htobe16(x) bswap16((x)) |
|
#define | htobe32(x) bswap32((x)) |
|
#define | htobe64(x) bswap64((x)) |
|
#define | htole16(x) ((uint16_t)(x)) |
|
#define | htole32(x) ((uint32_t)(x)) |
|
#define | htole64(x) ((uint64_t)(x)) |
|
#define | be16toh(x) bswap16((x)) |
|
#define | be32toh(x) bswap32((x)) |
|
#define | be64toh(x) bswap64((x)) |
|
#define | le16toh(x) ((uint16_t)(x)) |
|
#define | le32toh(x) ((uint32_t)(x)) |
|
#define | le64toh(x) ((uint64_t)(x)) |
|
|
typedef __uint8_t | uint8_t |
|
typedef __uint16_t | uint16_t |
|
typedef __uint32_t | uint32_t |
|
typedef __uint64_t | uint64_t |
|
This header file provides interfaces of the system endianness support.