projects
/
fio.git
/ blame_incremental
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(non-incremental) |
history
|
HEAD
io_u: make io_u_quiesce() return how many IOs it completed
[fio.git]
/
lib
/
pow2.h
This page requires JavaScript to run. Use
this page
instead.
... / ...
Commit
Line
Data
1
#ifndef FIO_POW2_H
2
#define FIO_POW2_H
3
4
#include <inttypes.h>
5
6
static inline int is_power_of_2(uint64_t val)
7
{
8
return (val != 0 && ((val & (val - 1)) == 0));
9
}
10
11
#endif