+#endif /* FIO_HAVE_BYTEORDER_FUNCS */
+
+#ifdef FIO_INTERNAL
+#define le16_to_cpu(val) ({ \
+ typecheck(uint16_t, val); \
+ __le16_to_cpu(val); \
+})
+#define le32_to_cpu(val) ({ \
+ typecheck(uint32_t, val); \
+ __le32_to_cpu(val); \
+})
+#define le64_to_cpu(val) ({ \
+ typecheck(uint64_t, val); \
+ __le64_to_cpu(val); \
+})
+#endif
+
+#define cpu_to_le16(val) ({ \
+ typecheck(uint16_t, val); \
+ __cpu_to_le16(val); \
+})
+#define cpu_to_le32(val) ({ \
+ typecheck(uint32_t, val); \
+ __cpu_to_le32(val); \
+})
+#define cpu_to_le64(val) ({ \
+ typecheck(uint64_t, val); \
+ __cpu_to_le64(val); \
+})