Searched refs:LOG2 (Results 1 – 8 of 8) sorted by relevance
/Zephyr-Core-3.6.0/tests/unit/pot/ |
D | log2.c | 10 static const uint8_t val = LOG2(42); 11 static const uint8_t val64 = LOG2(42 + BIT64(32)); 15 zassert_equal(-1, LOG2(LLONG_MIN)); in ZTEST() 16 zassert_equal(-1, LOG2(LONG_MIN)); in ZTEST() 17 zassert_equal(-1, LOG2(INT_MIN)); in ZTEST() 18 zassert_equal(-1, LOG2(-1)); in ZTEST() 19 zassert_equal(-1, LOG2(0)); in ZTEST() 20 zassert_equal(0, LOG2(1)); in ZTEST() 21 zassert_equal(1, LOG2(2)); in ZTEST() 22 zassert_equal(1, LOG2(3)); in ZTEST() [all …]
|
D | log2.cpp | 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() [all …]
|
/Zephyr-Core-3.6.0/subsys/ipc/ipc_service/backends/ |
D | ipc_rpmsg_static_vrings.h | 167 return (--num_desc == 0) ? 0 : (1 << LOG2(num_desc)); in optimal_num_desc()
|
/Zephyr-Core-3.6.0/lib/posix/options/ |
D | signal.c | 14 #define SIGNO_WORD_BIT(_signo) (signo & BIT_MASK(LOG2(BITS_PER_LONG)))
|
/Zephyr-Core-3.6.0/drivers/interrupt_controller/ |
D | intc_plic.c | 61 #define PLIC_REG_MASK BIT_MASK(LOG2(PLIC_REG_SIZE)) 94 return local_irq >> LOG2(PLIC_REG_SIZE); in local_irq_to_reg_index()
|
/Zephyr-Core-3.6.0/include/zephyr/sys/ |
D | util.h | 621 #define LOG2(x) ((x) < 1 ? -1 : __z_log2(x)) macro
|
/Zephyr-Core-3.6.0/drivers/can/ |
D | can_mcp251xfd.h | 18 ((flag_u32) >> ROUND_DOWN(LOG2((flag_u32)), 8))
|
/Zephyr-Core-3.6.0/doc/releases/ |
D | release-notes-2.7.rst | 1612 * :github:`36486` - LOG2 - self referential macro
|