is_power_of_2() should return bool
authorJens Axboe <axboe@fb.com>
Fri, 17 Mar 2017 16:39:42 +0000 (10:39 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 17 Mar 2017 16:39:42 +0000 (10:39 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
lib/pow2.h

index f3ca4d7..2cbca1a 100644 (file)
@@ -2,8 +2,9 @@
 #define FIO_POW2_H
 
 #include <inttypes.h>
+#include "types.h"
 
-static inline int is_power_of_2(uint64_t val)
+static inline bool is_power_of_2(uint64_t val)
 {
        return (val != 0 && ((val & (val - 1)) == 0));
 }