+#if HAVE_LITTLE_ENDIAN
+/**
+ * CPU_TO_LE64_CONST - convert a constant uint64_t value to little-endian
+ * @native: constant to convert
+ */
+#define CPU_TO_LE64_CONST(native) (native)
+
+/**
+ * CPU_TO_LE32_CONST - convert a constant uint32_t value to little-endian
+ * @native: constant to convert
+ */
+#define CPU_TO_LE32_CONST(native) (native)
+
+/**
+ * CPU_TO_LE16_CONST - convert a constant uint16_t value to little-endian
+ * @native: constant to convert
+ */
+#define CPU_TO_LE16_CONST(native) (native)
+
+/**
+ * LE64_TO_CPU_CONST - convert a little-endian uint64_t constant
+ * @le_val: little-endian constant to convert
+ */
+#define LE64_TO_CPU_CONST(le_val) (le_val)
+
+/**
+ * LE32_TO_CPU_CONST - convert a little-endian uint32_t constant
+ * @le_val: little-endian constant to convert
+ */
+#define LE32_TO_CPU_CONST(le_val) (le_val)
+
+/**
+ * LE16_TO_CPU_CONST - convert a little-endian uint16_t constant
+ * @le_val: little-endian constant to convert
+ */
+#define LE16_TO_CPU_CONST(le_val) (le_val)
+
+#else /* ... HAVE_BIG_ENDIAN */
+#define CPU_TO_LE64_CONST(native) BSWAP_64_CONST(native)
+#define CPU_TO_LE32_CONST(native) BSWAP_32_CONST(native)
+#define CPU_TO_LE16_CONST(native) BSWAP_16_CONST(native)
+#define LE64_TO_CPU_CONST(le_val) BSWAP_64_CONST(le_val)
+#define LE32_TO_CPU_CONST(le_val) BSWAP_32_CONST(le_val)
+#define LE16_TO_CPU_CONST(le_val) BSWAP_16_CONST(le_val)
+#endif /* HAVE_BIG_ENDIAN */
+
+#if HAVE_BIG_ENDIAN
+/**
+ * CPU_TO_BE64_CONST - convert a constant uint64_t value to big-endian
+ * @native: constant to convert
+ */
+#define CPU_TO_BE64_CONST(native) (native)
+
+/**
+ * CPU_TO_BE32_CONST - convert a constant uint32_t value to big-endian
+ * @native: constant to convert
+ */
+#define CPU_TO_BE32_CONST(native) (native)
+
+/**
+ * CPU_TO_BE16_CONST - convert a constant uint16_t value to big-endian
+ * @native: constant to convert
+ */
+#define CPU_TO_BE16_CONST(native) (native)
+
+/**
+ * BE64_TO_CPU_CONST - convert a big-endian uint64_t constant
+ * @le_val: big-endian constant to convert
+ */
+#define BE64_TO_CPU_CONST(le_val) (le_val)
+
+/**
+ * BE32_TO_CPU_CONST - convert a big-endian uint32_t constant
+ * @le_val: big-endian constant to convert
+ */
+#define BE32_TO_CPU_CONST(le_val) (le_val)
+
+/**
+ * BE16_TO_CPU_CONST - convert a big-endian uint16_t constant
+ * @le_val: big-endian constant to convert
+ */
+#define BE16_TO_CPU_CONST(le_val) (le_val)
+
+#else /* ... HAVE_LITTLE_ENDIAN */
+#define CPU_TO_BE64_CONST(native) BSWAP_64_CONST(native)
+#define CPU_TO_BE32_CONST(native) BSWAP_32_CONST(native)
+#define CPU_TO_BE16_CONST(native) BSWAP_16_CONST(native)
+#define BE64_TO_CPU_CONST(le_val) BSWAP_64_CONST(le_val)
+#define BE32_TO_CPU_CONST(le_val) BSWAP_32_CONST(le_val)
+#define BE16_TO_CPU_CONST(le_val) BSWAP_16_CONST(le_val)
+#endif /* HAVE_LITTE_ENDIAN */
+
+