projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
HOWTO: fix unit type suffix in "Parameter types" section to upper case
[fio.git]
/
lib
/
pow2.h
diff --git
a/lib/pow2.h
b/lib/pow2.h
index f3ca4d7b86c2213fd4d33901c1aff09a26260b69..2cbca1ab3484d55757e9c1785a5459d674d5328c 100644
(file)
--- a/
lib/pow2.h
+++ b/
lib/pow2.h
@@
-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));
}