projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f7df58c
)
Generic endianness typo
author
Jens Axboe
<axboe@kernel.dk>
Tue, 4 Oct 2011 14:02:51 +0000
(16:02 +0200)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 4 Oct 2011 14:02:51 +0000
(16:02 +0200)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
os/os.h
patch
|
blob
|
blame
|
history
diff --git
a/os/os.h
b/os/os.h
index 33baf73264e6e7b47b5213fd12ae3bc57f52a2b9..c6c91a045d9a7e14ea902ce275ec064646c20e14 100644
(file)
--- 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);