diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-05-26 01:34:08 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-05-26 01:34:08 +0000 |
commit | 20dd29a97bf1cb69197c2a87173930d143ec8b7d (patch) | |
tree | fcc8c04d875940d0b22bf537c628b363a5e4b767 | |
parent | c7fa6f9cb5068f1f23125971a60f4cd3fcdba389 (diff) |
the 16/32 swap funcs were swapped #875
-rw-r--r-- | utils/bswap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/bswap.h b/utils/bswap.h index 6e7f7d336..56c3a1d32 100644 --- a/utils/bswap.h +++ b/utils/bswap.h @@ -33,12 +33,12 @@ #include <byteswap.h> #else -static inline uint32_t bswap_32(uint32_t x) +static inline uint16_t bswap_16(uint16_t x) { return ((((x) & 0xff00) >> 8) | \ (((x) & 0x00ff) << 8)); } -static inline uint16_t bswap_16(uint16_t x) +static inline uint32_t bswap_32(uint32_t x) { return ((((x) & 0xff000000) >> 24) | \ (((x) & 0x00ff0000) >> 8) | \ |