Go to the documentation of this file.
48 #elif HAVE_MACHINE_ENDIAN_H
50 #include <machine/endian.h>
55 #define BYTE_ORDER __BYTE_ORDER
56 #define LITTLE_ENDIAN __LITTLE_ENDIAN
60 #if BYTE_ORDER == LITTLE_ENDIAN
63 #define GUINT16_TO_BE(x) htobe16(x)
65 #define GUINT16_TO_BE(x) dtn::data::bswap16(x)
70 #define GUINT32_TO_BE(x) htobe32(x)
72 #define GUINT32_TO_BE(x) dtn::data::bswap32(x)
77 #define GUINT64_TO_BE(x) htobe64(x)
79 #define GUINT64_TO_BE(x) dtn::data::bswap64(x)
84 #define GUINT16_TO_BE(x) (x)
85 #define GUINT32_TO_BE(x) (x)
86 #define GUINT64_TO_BE(x) (x)