projects
/
fio.git
/ blame
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(incremental) |
history
|
HEAD
doc: update fio doc for xnvme engine
[fio.git]
/
lib
/
roundup.h
Commit
Line
Data
6d975f2c
JA
1
#ifndef FIO_ROUNDUP_H
2
#define FIO_ROUNDUP_H
3
4
#include "lib/fls.h"
5
6
static inline unsigned roundup_pow2(unsigned depth)
7
{
8
return 1UL << __fls(depth - 1);
9
}
10
11
#endif