Lines Matching +full:0 +full:- +full:42
4 * SPDX-License-Identifier: Apache-2.0
10 static constexpr uint32_t val = NHPOT(42);
11 static constexpr uint64_t val64 = NHPOT(42 + BIT64(32));
23 zassert_equal(1, NHPOT(-1)); in ZTEST()
24 zassert_equal(1, NHPOT(0)); in ZTEST()
34 zassert_equal(0, (uint32_t)NHPOT(BIT64(32))); in ZTEST()
36 zassert_equal(BIT64(63), NHPOT(BIT64(63) - 1)); in ZTEST()
38 zassert_equal(0, NHPOT(BIT64(63) + 1)); in ZTEST()
39 zassert_equal(0, NHPOT(UINT64_MAX)); in ZTEST()
42 zassert_equal(64ULL, nhpot(42ULL)); in ZTEST()
44 zassert_equal(BIT64(33), nhpot(42 + BIT64(32))); in ZTEST()