Lines Matching refs:LOG2CEIL
10 static const uint8_t val = LOG2CEIL(42);
11 static const uint8_t val64 = LOG2CEIL(42 + BIT64(32));
15 zassert_equal(0, LOG2CEIL(LLONG_MIN)); in ZTEST()
16 zassert_equal(0, LOG2CEIL(LONG_MIN)); in ZTEST()
17 zassert_equal(0, LOG2CEIL(INT_MIN)); in ZTEST()
18 zassert_equal(0, LOG2CEIL(-1)); in ZTEST()
19 zassert_equal(0, LOG2CEIL(0)); in ZTEST()
20 zassert_equal(0, LOG2CEIL(1)); in ZTEST()
21 zassert_equal(1, LOG2CEIL(2)); in ZTEST()
22 zassert_equal(2, LOG2CEIL(3)); in ZTEST()
23 zassert_equal(2, LOG2CEIL(4)); in ZTEST()
24 zassert_equal(3, LOG2CEIL(5)); in ZTEST()
25 zassert_equal(31, LOG2CEIL(BIT(31))); in ZTEST()
26 zassert_equal(32, LOG2CEIL(BIT(31) + 1)); in ZTEST()
27 zassert_equal(32, LOG2CEIL(UINT32_MAX)); in ZTEST()
28 zassert_equal(32, LOG2CEIL(BIT64(32))); in ZTEST()
29 zassert_equal(33, LOG2CEIL(BIT64(32) + 1)); in ZTEST()
30 zassert_equal(63, LOG2CEIL(BIT64(63) - 1)); in ZTEST()
31 zassert_equal(63, LOG2CEIL(BIT64(63))); in ZTEST()
32 zassert_equal(64, LOG2CEIL(BIT64(63) + 1)); in ZTEST()
33 zassert_equal(64, LOG2CEIL(UINT64_MAX)); in ZTEST()