1 #ifndef __NS_H_ 2 #define __NS_H_ 3 4 #include <endian.h> 5 #include <stdint.h> 6 cpu_to_le32(uint32_t x)7 static inline __le32 cpu_to_le32(uint32_t x) { return htole32(x); } le32_to_cpu(__le32 x)8 static inline uint32_t le32_to_cpu(__le32 x) { return le32toh(x); } 9 10 #endif 11