1 #ifndef BYTEORDER_H_INCLUDED
2 #define BYTEORDER_H_INCLUDED
11 #if BYTE_ORDER == LITTLE_ENDIAN
12 # define le16_to_cpu(x) (x)
13 # define be16_to_cpu(x) bswap_16(x)
14 # define le32_to_cpu(x) (x)
15 # define le64_to_cpu(x) (x)
16 # define be32_to_cpu(x) bswap_32(x)
17 # define be64_to_cpu(x) bswap_64(x)
18 #elif BYTE_ORDER == BIG_ENDIAN
19 # define le16_to_cpu(x) bswap_16(x)
20 # define be16_to_cpu(x) (x)
21 # define le32_to_cpu(x) bswap_32(x)
22 # define le64_to_cpu(x) bswap_64(x)
23 # define be32_to_cpu(x) (x)
24 # define be64_to_cpu(x) (x)
29 #endif /* BYTEORDER_H_INCLUDED */