Home
last modified time | relevance | path

Searched refs:nextPowerOf2 (Results 1 – 3 of 3) sorted by relevance

/external/llvm-project/mlir/include/mlir/ExecutionEngine/
DCRunnerUtils.h43 constexpr unsigned nextPowerOf2(int N) { in nextPowerOf2() function
44 return (N <= 1) ? 1 : (isPowerOf2(N) ? N : (2 * nextPowerOf2((N + 1) / 2))); in nextPowerOf2()
53 static_assert(detail::nextPowerOf2(sizeof(T[Dim])) == sizeof(T[Dim]),
68 static_assert(detail::nextPowerOf2(sizeof(T[Dim])) > sizeof(T[Dim]),
70 static_assert(detail::nextPowerOf2(sizeof(T[Dim])) < 2 * sizeof(T[Dim]),
78 char padding[detail::nextPowerOf2(sizeof(T[Dim])) - sizeof(T[Dim])];
/external/jimfs/jimfs/src/main/java/com/google/common/jimfs/
DUtil.java35 public static int nextPowerOf2(int n) { in nextPowerOf2() method in Util
DRegularFile.java22 import static com.google.common.jimfs.Util.nextPowerOf2;
87 this.blocks = Arrays.copyOf(blocks, nextPowerOf2(minBlockCount)); in expandIfNecessary()