X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Flibpspp%2Finteger-format.h;fp=src%2Flibpspp%2Finteger-format.h;h=6229acea383f9ca137883eb51f05fc3b92a33015;hb=52c54183e360053b1845e46cb96cd44a0cf96040;hp=a8a3cb32756125c5333bf1fa3021d3624c047488;hpb=2ca3267c1110bbff675c560b19d02defb96ee2f9;p=pspp diff --git a/src/libpspp/integer-format.h b/src/libpspp/integer-format.h index a8a3cb3275..6229acea38 100644 --- a/src/libpspp/integer-format.h +++ b/src/libpspp/integer-format.h @@ -38,7 +38,7 @@ enum integer_format #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. @@ -65,9 +65,9 @@ enum integer_format #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); }