Home
last modified time | relevance | path

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

/external/llvm-project/libcxx/test/std/numerics/bit/bit.pow.two/
Dbit_ceil.pass.cpp33 return std::bit_ceil(T(0)) == T(1) in constexpr_test()
34 && std::bit_ceil(T(1)) == T(1) in constexpr_test()
35 && std::bit_ceil(T(2)) == T(2) in constexpr_test()
36 && std::bit_ceil(T(3)) == T(4) in constexpr_test()
37 && std::bit_ceil(T(4)) == T(4) in constexpr_test()
38 && std::bit_ceil(T(5)) == T(8) in constexpr_test()
39 && std::bit_ceil(T(6)) == T(8) in constexpr_test()
40 && std::bit_ceil(T(7)) == T(8) in constexpr_test()
41 && std::bit_ceil(T(8)) == T(8) in constexpr_test()
42 && std::bit_ceil(T(9)) == T(16) in constexpr_test()
[all …]
Dbit_ceil.fail.cpp31 return 0 == std::bit_ceil(std::numeric_limits<T>::max()); in toobig()
/external/angle/third_party/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;
/external/swiftshader/src/System/
DTypes.hpp53 constexpr inline uint32_t bit_ceil(uint32_t i) in bit_ceil() function
72 struct alignas(sizeof(T) * bit_ceil(N)) vec
/external/llvm-project/libcxx/include/
Dbit22 constexpr T bit_ceil(T x); // C++20
443 bit_ceil(_Tp __t) noexcept
447 …T(__libcpp_is_constant_evaluated() || __n != numeric_limits<_Tp>::digits, "Bad input to bit_ceil");
/external/llvm-project/libcxx/docs/
DReleaseNotes.rst56 - ``ceil2`` has been renamed to ``bit_ceil``