8 #define __LITTLE_ENDIAN 0
10 #define __BYTE_ORDER __BIG_ENDIAN
12 static inline unsigned int le32toh(unsigned int val
)
14 return (val
& 0xff) << 24 |
16 (val
& 0xff0000) >> 8 |
17 (val
& 0xff000000) >> 24;
20 static inline unsigned short le16toh(unsigned short val
)
22 return (val
& 0xff) << 8 |
30 #endif /* __ENDIAN_H */