Lines Matching +full:0 +full:- +full:32
4 * SPDX-License-Identifier: Apache-2.0
10 static constexpr uint8_t val = LOG2CEIL(32);
11 static constexpr uint8_t val64 = LOG2CEIL(42 + BIT64(32));
20 zassert_equal(0, LOG2CEIL(LLONG_MIN)); in ZTEST()
21 zassert_equal(0, LOG2CEIL(LONG_MIN)); in ZTEST()
22 zassert_equal(0, LOG2CEIL(INT_MIN)); in ZTEST()
23 zassert_equal(0, LOG2CEIL(-1)); in ZTEST()
24 zassert_equal(0, LOG2CEIL(0)); in ZTEST()
25 zassert_equal(0, LOG2CEIL(1)); in ZTEST()
31 zassert_equal(32, LOG2CEIL(BIT(31) + 1)); in ZTEST()
32 zassert_equal(32, LOG2CEIL(UINT32_MAX)); in ZTEST()
33 zassert_equal(32, LOG2CEIL(BIT64(32))); in ZTEST()
34 zassert_equal(33, LOG2CEIL(BIT64(32) + 1)); in ZTEST()
35 zassert_equal(63, LOG2CEIL(BIT64(63) - 1)); in ZTEST()
41 zassert_equal(5, log2ceil(32)); in ZTEST()
43 zassert_equal(33, log2ceil(42 + BIT64(32))); in ZTEST()