RTEMS 6.3
Loading...
Searching...
No Matches
endian.h File Reference

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.

Macros

#define _UINT8_T_DECLARED
#define _UINT16_T_DECLARED
#define _UINT32_T_DECLARED
#define _UINT64_T_DECLARED
#define bswap16(x)
#define bswap32(x)
#define bswap64(x)
#define htobe16(x)
#define htobe32(x)
#define htobe64(x)
#define htole16(x)
#define htole32(x)
#define htole64(x)
#define be16toh(x)
#define be32toh(x)
#define be64toh(x)
#define le16toh(x)
#define le32toh(x)
#define le64toh(x)

Typedefs

typedef __uint8_t uint8_t
typedef __uint16_t uint16_t
typedef __uint32_t uint32_t
typedef __uint64_t uint64_t

Detailed Description

This header file provides interfaces of the system endianness support.

Macro Definition Documentation

◆ be16toh

#define be16toh ( x)
Value:
bswap16((x))

◆ be32toh

#define be32toh ( x)
Value:
bswap32((x))

◆ be64toh

#define be64toh ( x)
Value:
bswap64((x))

◆ bswap16

#define bswap16 ( x)
Value:
__bswap16(x)

◆ bswap32

#define bswap32 ( x)
Value:
__bswap32(x)

◆ bswap64

#define bswap64 ( x)
Value:
__bswap64(x)

◆ htobe16

#define htobe16 ( x)
Value:
bswap16((x))

◆ htobe32

#define htobe32 ( x)
Value:
bswap32((x))

◆ htobe64

#define htobe64 ( x)
Value:
bswap64((x))

◆ htole16

#define htole16 ( x)
Value:
((uint16_t)(x))

◆ htole32

#define htole32 ( x)
Value:
((uint32_t)(x))

◆ htole64

#define htole64 ( x)
Value:
((uint64_t)(x))

◆ le16toh

#define le16toh ( x)
Value:
((uint16_t)(x))

◆ le32toh

#define le32toh ( x)
Value:
((uint32_t)(x))

◆ le64toh

#define le64toh ( x)
Value:
((uint64_t)(x))