commit | 225ba9e3433cf27d8ff7b213d9f78b7ef2776c70 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Wed Feb 26 14:31:15 2014 -0800 |
committer | Jens Axboe <axboe@fb.com> | Wed Feb 26 14:31:15 2014 -0800 |
tree | 42aa9c5b489de9ced5c4b6fc9ff8fbb1ff805e7b | |
parent | 5903e7b7907854014478b6febfc5645a203ff59e [diff] [blame] |
Branch and cache miss speedups Just some low hanging fruit. Signed-off-by: Jens Axboe <axboe@fb.com>
diff --git a/compiler/compiler.h b/compiler/compiler.h index 036ba20..0a0213b 100644 --- a/compiler/compiler.h +++ b/compiler/compiler.h
@@ -20,4 +20,6 @@ #define fio_init __attribute__((constructor)) #define fio_exit __attribute__((destructor)) +#define fio_unlikely(x) __builtin_expect(!!(x), 0) + #endif