Searched refs:nextPowerOf2 (Results 1 – 3 of 3) sorted by relevance
43 constexpr unsigned nextPowerOf2(int N) { in nextPowerOf2() function44 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])];
35 public static int nextPowerOf2(int n) { in nextPowerOf2() method in Util
22 import static com.google.common.jimfs.Util.nextPowerOf2;87 this.blocks = Arrays.copyOf(blocks, nextPowerOf2(minBlockCount)); in expandIfNecessary()