From 5e26e2ab1dadb1e4176d5a4cac03100a7d21c22f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 16 Oct 2013 21:09:19 +0200 Subject: system/ByteOrder: new library for byte ordering / endianess Replacing GLib macros. --- src/util/ByteReverse.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/util/ByteReverse.cxx') diff --git a/src/util/ByteReverse.cxx b/src/util/ByteReverse.cxx index d1d0a935a..910c1e2a5 100644 --- a/src/util/ByteReverse.cxx +++ b/src/util/ByteReverse.cxx @@ -18,9 +18,9 @@ */ #include "ByteReverse.hxx" +#include "system/ByteOrder.hxx" #include "Compiler.h" -#include #include void @@ -33,7 +33,7 @@ reverse_bytes_16(uint16_t *gcc_restrict dest, while (src < src_end) { const uint16_t x = *src++; - *dest++ = GUINT16_SWAP_LE_BE(x); + *dest++ = ByteSwap16(x); } } @@ -47,7 +47,7 @@ reverse_bytes_32(uint32_t *gcc_restrict dest, while (src < src_end) { const uint32_t x = *src++; - *dest++ = GUINT32_SWAP_LE_BE(x); + *dest++ = ByteSwap32(x); } } @@ -61,7 +61,7 @@ reverse_bytes_64(uint64_t *gcc_restrict dest, while (src < src_end) { const uint64_t x = *src++; - *dest++ = GUINT64_SWAP_LE_BE(x); + *dest++ = ByteSwap64(x); } } -- cgit v1.2.3