|
@@ -33,12 +33,12 @@
|
|
#include <byteswap.h>
|
|
#include <byteswap.h>
|
|
#else
|
|
#else
|
|
|
|
|
|
-static inline uint32_t bswap_32(uint32_t x)
|
|
+static inline uint16_t bswap_16(uint16_t x)
|
|
{
|
|
{
|
|
return ((((x) & 0xff00) >> 8) | \
|
|
return ((((x) & 0xff00) >> 8) | \
|
|
(((x) & 0x00ff) << 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) | \
|
|
return ((((x) & 0xff000000) >> 24) | \
|
|
(((x) & 0x00ff0000) >> 8) | \
|
|
(((x) & 0x00ff0000) >> 8) | \
|