Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/abseil-cpp/absl/numeric/
Dbits_test.cc389 template <typename T, T arg, T = bit_ceil(arg)>
400 static_assert(bit_ceil(0u) == 1, ""); in TEST()
401 static_assert(bit_ceil(1u) == 1, ""); in TEST()
402 static_assert(bit_ceil(2u) == 2, ""); in TEST()
403 static_assert(bit_ceil(3u) == 4, ""); in TEST()
404 static_assert(bit_ceil(4u) == 4, ""); in TEST()
405 static_assert(bit_ceil(1337u) == 2048, ""); in TEST()
406 static_assert(bit_ceil(65536u) == 65536, ""); in TEST()
407 static_assert(bit_ceil(65536u - 1337u) == 65536, ""); in TEST()
408 static_assert(bit_ceil(uint32_t{0x80000000}) == uint32_t{0x80000000}, ""); in TEST()
[all …]
Dbits.h154 bit_ceil(T x) { in bit_ceil() function
167 using std::bit_ceil;
/third_party/skia/third_party/externals/swiftshader/src/System/
DTypes.hpp64 constexpr inline uint32_t bit_ceil(uint32_t i) in bit_ceil() function
83 struct alignas(sizeof(T) * bit_ceil(N)) vec