Sign in
kernel
/
pub
/
scm
/
linux
/
kernel
/
git
/
axboe
/
fio
/
79f488cbd95ca6989031a7ace5ec382313d31b3c
/
.
/
lib
/
roundup.h
blob: 5a99c8acce67b9ecdc643029a8e9d686a63d4c91 [
file
] [
log
] [
blame
]
#ifndef
FIO_ROUNDUP_H
#define
FIO_ROUNDUP_H
#include
"lib/fls.h"
static
inline
unsigned
roundup_pow2
(
unsigned
depth
)
{
return
1UL
<<
__fls
(
depth
-
1
);
}
#endif