Lines Matching refs:NHPOT
10 static constexpr uint32_t val = NHPOT(42);
11 static constexpr uint64_t val64 = NHPOT(42 + BIT64(32));
15 return NHPOT(x); in nhpot()
20 zassert_equal(1, NHPOT(LLONG_MIN)); in ZTEST()
21 zassert_equal(1, NHPOT(LONG_MIN)); in ZTEST()
22 zassert_equal(1, NHPOT(INT_MIN)); in ZTEST()
23 zassert_equal(1, NHPOT(-1)); in ZTEST()
24 zassert_equal(1, NHPOT(0)); in ZTEST()
25 zassert_equal(1, NHPOT(1)); in ZTEST()
26 zassert_equal(2, NHPOT(2)); in ZTEST()
27 zassert_equal(4, NHPOT(3)); in ZTEST()
28 zassert_equal(4, NHPOT(4)); in ZTEST()
29 zassert_equal(8, NHPOT(5)); in ZTEST()
30 zassert_equal(BIT(31), NHPOT(BIT(31))); in ZTEST()
31 zassert_equal(BIT64(32), NHPOT(BIT(31) + 1)); in ZTEST()
32 zassert_equal(BIT64(32), NHPOT(UINT32_MAX)); in ZTEST()
33 zassert_equal(BIT64(32), NHPOT(BIT64(32))); in ZTEST()
34 zassert_equal(0, (uint32_t)NHPOT(BIT64(32))); in ZTEST()
35 zassert_equal(BIT64(33), NHPOT(BIT64(32) + 1)); in ZTEST()
36 zassert_equal(BIT64(63), NHPOT(BIT64(63) - 1)); in ZTEST()
37 zassert_equal(BIT64(63), NHPOT(BIT64(63))); in ZTEST()
38 zassert_equal(0, NHPOT(BIT64(63) + 1)); in ZTEST()
39 zassert_equal(0, NHPOT(UINT64_MAX)); in ZTEST()