1 #ifndef ETHERBOOT_BYTESWAP_H
2 #define ETHERBOOT_BYTESWAP_H
5 #include "bits/byteswap.h"
7 #if __BYTE_ORDER == __LITTLE_ENDIAN
8 #include "little_bswap.h"
10 #if __BYTE_ORDER == __BIG_ENDIAN
11 #include "big_bswap.h"
14 /* Make routines available to all */
15 #define swap64(x) __bswap_64(x)
16 #define swap32(x) __bswap_32(x)
17 #define swap16(x) __bswap_16(x)
18 #define bswap_64(x) __bswap_64(x)
19 #define bswap_32(x) __bswap_32(x)
20 #define bswap_16(x) __bswap_16(x)
22 #endif /* ETHERBOOT_BYTESWAP_H */