Searched refs:LOG2 (Results 1 – 10 of 10) sorted by relevance
/Zephyr-Core-3.7.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.7.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.7.0/lib/posix/options/ |
D | signal.c | 15 #define SIGNO_WORD_BIT(_signo) (_signo & BIT_MASK(LOG2(BITS_PER_LONG)))
|
/Zephyr-Core-3.7.0/drivers/interrupt_controller/ |
D | intc_plic.c | 62 #define PLIC_REG_MASK BIT_MASK(LOG2(PLIC_REG_SIZE)) 96 return local_irq >> LOG2(PLIC_REG_SIZE); in local_irq_to_reg_index()
|
/Zephyr-Core-3.7.0/drivers/watchdog/ |
D | wdt_npcx.c | 264 wdcp = LOG2(pre_scal - 1) + 1; in wdt_npcx_setup()
|
/Zephyr-Core-3.7.0/include/zephyr/sys/ |
D | util.h | 693 #define LOG2(x) ((x) < 1 ? -1 : __z_log2(x)) macro
|
/Zephyr-Core-3.7.0/drivers/can/ |
D | can_mcp251xfd.h | 18 ((flag_u32) >> ROUND_DOWN(LOG2((flag_u32)), 8))
|
/Zephyr-Core-3.7.0/drivers/sensor/grow_r502a/ |
D | grow_r502a.c | 986 val.val2 = LOG2(CONFIG_R502A_DATA_PKT_SIZE >> 5); in fps_init()
|
/Zephyr-Core-3.7.0/doc/releases/ |
D | release-notes-2.7.rst | 1612 * :github:`36486` - LOG2 - self referential macro
|