From 9677bec37d1b9d2949116cdc3d691a4d3e534cbe Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 4 Oct 2011 16:02:51 +0200 Subject: [PATCH] Generic endianness typo Signed-off-by: Jens Axboe --- os/os.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os/os.h b/os/os.h index 33baf732..c6c91a04 100644 --- a/os/os.h +++ b/os/os.h @@ -116,7 +116,7 @@ typedef unsigned long os_cpu_mask_t; #endif #if 0 -static inline uint16 fio_swap16(uint16_t val) +static inline uint16_t fio_swap16(uint16_t val) { return (val << 8) | (val >> 8); } @@ -128,7 +128,7 @@ static inline uint32_t bswap_32(uint32_t val) return (val >> 16) | (val << 16); } -static inline uint64_t bswap_64(uint64_t x) +static inline uint64_t bswap_64(uint64_t val) { val = ((val & 0xff00ff00ff00ff00ULL) >> 8) | ((val & 0x00ff00ff00ff00ffULL) << 8); -- 2.25.1