blob: 75f771e2cd96b33cfa273dcec6a2c0d2b80014a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* Public domain. */
#ifndef _ASM_BYTEORDER_H
#define _ASM_BYTEORDER_H
#include <sys/endian.h>
#define le16_to_cpu(x) letoh16(x)
#define le32_to_cpu(x) letoh32(x)
#define be16_to_cpu(x) betoh16(x)
#define be32_to_cpu(x) betoh32(x)
#define le16_to_cpup(x) lemtoh16(x)
#define le32_to_cpup(x) lemtoh32(x)
#define be16_to_cpup(x) bemtoh16(x)
#define be32_to_cpup(x) bemtoh32(x)
#define get_unaligned_le32(x) lemtoh32(x)
#define cpu_to_le16(x) htole16(x)
#define cpu_to_le32(x) htole32(x)
#define cpu_to_be16(x) htobe16(x)
#define cpu_to_be32(x) htobe32(x)
#endif
|