b23b233a71b701962a91e378677bc01691b2434e
[people/balajirrao/gpxe.git] / src / arch / i386 / include / bits / endian.h
1 #ifndef ETHERBOOT_BITS_ENDIAN_H
2 #define ETHERBOOT_BITS_ENDIAN_H
3
4 #define __BYTE_ORDER __LITTLE_ENDIAN
5
6 #define le32_to_cpup(x) (*(uint32_t *)(x))
7 #define cpu_to_le16p(x) (*(uint16_t*)(x))
8
9 #endif /* ETHERBOOT_BITS_ENDIAN_H */