Browse Source

the 16/32 swap funcs were swapped #875

Mike Frysinger 18 years ago
parent
commit
20dd29a97b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      utils/bswap.h

+ 2 - 2
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) | \