diff options
author | Max Kellermann <max@duempel.org> | 2013-10-16 21:09:19 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-16 22:09:44 +0200 |
commit | 5e26e2ab1dadb1e4176d5a4cac03100a7d21c22f (patch) | |
tree | fccf16ec9b798ab06913250073e003b2830d2817 /src/util | |
parent | 08eca827b659f2becc872c151919948b5a9ffe4d (diff) | |
download | mpd-5e26e2ab1dadb1e4176d5a4cac03100a7d21c22f.tar.gz mpd-5e26e2ab1dadb1e4176d5a4cac03100a7d21c22f.tar.xz mpd-5e26e2ab1dadb1e4176d5a4cac03100a7d21c22f.zip |
system/ByteOrder: new library for byte ordering / endianess
Replacing GLib macros.
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/ByteReverse.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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 <glib.h> #include <assert.h> 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); } } |