Sign in
android
/
platform
/
external
/
fio
/
refs/tags/android-9.0.0_r42
/
.
/
lib
/
pow2.h
blob: 2cbca1ab3484d55757e9c1785a5459d674d5328c [
file
] [
log
] [
blame
]
#ifndef
FIO_POW2_H
#define
FIO_POW2_H
#include
<inttypes.h>
#include
"types.h"
static
inline
bool
is_power_of_2
(
uint64_t
val
)
{
return
(
val
!=
0
&&
((
val
&
(
val
-
1
))
==
0
));
}
#endif