RTEMS CPU Kit with SuperCore  4.11.3
Macros
endian.h File Reference
#include <sys/cdefs.h>
#include <rtems/endian.h>
Include dependency graph for endian.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define bswap16(x)   CPU_swap_u16(x)
 
#define bswap32(x)   CPU_swap_u32(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))