#endif
};
-/* Byte-order conversion macros.
+/* Endian conversion macros.
These are intended for use only in contexts where a function cannot be
called, e.g. static initializers or case labels.
#define LE32_TO_CPU(X) CPU_TO_LE32 (X)
#define LE64_TO_CPU(X) CPU_TO_LE64 (X)
-/* Byte-order conversion functions.
+/* Endian conversion functions.
- These should be preferred to the macros. */
+ Use these in preference to the macros above. */
static inline uint16_t cpu_to_be16 (uint16_t x) { return CPU_TO_BE16 (x); }
static inline uint32_t cpu_to_be32 (uint32_t x) { return CPU_TO_BE32 (x); }
static inline uint64_t cpu_to_be64 (uint64_t x) { return CPU_TO_BE64 (x); }