Lines Matching refs:LOG2
10 static constexpr uint8_t val = LOG2(42);
11 static constexpr uint8_t val64 = LOG2(42 + BIT64(32));
15 return LOG2(x); in log2()
20 zassert_equal(-1, LOG2(0)); in ZTEST()
21 zassert_equal(0, LOG2(1)); in ZTEST()
22 zassert_equal(1, LOG2(2)); in ZTEST()
23 zassert_equal(1, LOG2(3)); in ZTEST()
24 zassert_equal(2, LOG2(4)); in ZTEST()
25 zassert_equal(2, LOG2(5)); in ZTEST()
26 zassert_equal(31, LOG2(BIT(31))); in ZTEST()
27 zassert_equal(31, LOG2(BIT(31) + 1)); in ZTEST()
28 zassert_equal(31, LOG2(UINT32_MAX)); in ZTEST()
29 zassert_equal(32, LOG2(BIT64(32))); in ZTEST()
30 zassert_equal(62, LOG2(BIT64(63) - 1)); in ZTEST()
31 zassert_equal(63, LOG2(BIT64(63))); in ZTEST()
32 zassert_equal(63, LOG2(BIT64(63) + 1)); in ZTEST()
33 zassert_equal(63, LOG2(UINT64_MAX)); in ZTEST()