commit | ff2451922f21826c2047208c2c3963843b1ffdcc | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Tue Oct 04 14:30:33 2011 +0200 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Oct 04 14:30:33 2011 +0200 |
tree | 0a2b399e95af95503ede9352007402b82b08c102 | |
parent | 6e675fcb0886d989b327bdb6a0a8717f345221cb [diff] [blame] |
Wider endianness support Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/os/os-linux.h b/os/os-linux.h index 8d3b97e..2599091 100644 --- a/os/os-linux.h +++ b/os/os-linux.h
@@ -295,6 +295,10 @@ #error "Unknown endianness" #endif +#define fio_swap16(x) __bswap_16(x) +#define fio_swap32(x) __bswap_32(x) +#define fio_swap64(x) __bswap_64(x) + #define CACHE_LINE_FILE \ "/sys/devices/system/cpu/cpu0/cache/index0/coherency_line_size"