Home
last modified time | relevance | path

Searched refs:IsPowerOf2 (Results 1 – 5 of 5) sorted by relevance

/frameworks/libs/binary_translation/base/
Dbit_util_test.cc25 static_assert(IsPowerOf2(sizeof(void*)));
26 static_assert(!IsPowerOf2(sizeof(void*) + 1));
28 static_assert(IsPowerOf2(RawInt8(4)));
29 static_assert(IsPowerOf2(SatInt8(4)));
30 static_assert(IsPowerOf2(Int8(4)));
/frameworks/libs/binary_translation/base/include/berberis/base/
Dbit_util.h42 constexpr bool IsPowerOf2(T x) { in IsPowerOf2() function
49 constexpr bool IsPowerOf2(Raw<T> x) { in IsPowerOf2() function
50 return IsPowerOf2(x.value); in IsPowerOf2()
54 constexpr bool IsPowerOf2(Saturating<T> x) { in IsPowerOf2() function
55 return IsPowerOf2(x.value); in IsPowerOf2()
59 constexpr bool IsPowerOf2(Wrapping<T> x) { in IsPowerOf2() function
60 return IsPowerOf2(x.value); in IsPowerOf2()
66 static_assert(IsPowerOf2(kAlign)); in AlignDown()
74 DCHECK(IsPowerOf2(align)); in AlignDown()
179 CHECK(IsPowerOf2(x)); in BitUtilLog2()
Dforever_alloc.h46 CHECK(IsPowerOf2(align)); in Allocate()
/frameworks/libs/binary_translation/tiny_loader/
Dtiny_loader.cc388 CHECK(berberis::IsPowerOf2(align)); in ReserveAddressSpace()
/frameworks/libs/binary_translation/interpreter/riscv64/
Dinterpreter.h501 if (!IsPowerOf2(args.nf + 1)) { in OpVector()
521 if (!IsPowerOf2(args.nf + 1)) { in OpVector()