Home
last modified time | relevance | path

Searched refs:LOG2CEIL (Results 1 – 19 of 19) sorted by relevance

/Zephyr-latest/tests/unit/pot/
Dlog2ceil.c10 static const uint8_t val = LOG2CEIL(42);
11 static const uint8_t val64 = LOG2CEIL(42 + BIT64(32));
15 zassert_equal(0, LOG2CEIL(LLONG_MIN)); in ZTEST()
16 zassert_equal(0, LOG2CEIL(LONG_MIN)); in ZTEST()
17 zassert_equal(0, LOG2CEIL(INT_MIN)); in ZTEST()
18 zassert_equal(0, LOG2CEIL(-1)); in ZTEST()
19 zassert_equal(0, LOG2CEIL(0)); in ZTEST()
20 zassert_equal(0, LOG2CEIL(1)); in ZTEST()
21 zassert_equal(1, LOG2CEIL(2)); in ZTEST()
22 zassert_equal(2, LOG2CEIL(3)); in ZTEST()
[all …]
Dlog2ceil.cpp10 static constexpr uint8_t val = LOG2CEIL(32);
11 static constexpr uint8_t val64 = LOG2CEIL(42 + BIT64(32));
15 return LOG2CEIL(x); in log2ceil()
20 zassert_equal(0, LOG2CEIL(LLONG_MIN)); in ZTEST()
21 zassert_equal(0, LOG2CEIL(LONG_MIN)); in ZTEST()
22 zassert_equal(0, LOG2CEIL(INT_MIN)); in ZTEST()
23 zassert_equal(0, LOG2CEIL(-1)); in ZTEST()
24 zassert_equal(0, LOG2CEIL(0)); in ZTEST()
25 zassert_equal(0, LOG2CEIL(1)); in ZTEST()
26 zassert_equal(1, LOG2CEIL(2)); in ZTEST()
[all …]
/Zephyr-latest/arch/arm/core/
Dvector_table.ld19 . = ALIGN( 1 << LOG2CEIL(4 * 64) );
24 . = ALIGN( 1 << LOG2CEIL(4 * 32) );
37 . = ALIGN( 1 << LOG2CEIL(4 * (16 + CONFIG_NUM_IRQS)) );
/Zephyr-latest/arch/arm/core/cortex_m/tz/
Dsecure_entry_functions.ld11 - MAX(32, (1 << LOG2CEIL(__sg_size))))
48 || (((1 << LOG2CEIL(NRF_SG_SIZE)) == NRF_SG_SIZE) /* Pow of 2 */
/Zephyr-latest/soc/nxp/s32/s32k3/
Dsections.ld19 _rom_region_order = ((LOG2CEIL(__rom_region_end - __rom_region_start) - 1) << 1);
/Zephyr-latest/arch/arm/core/cortex_m/
Drelay_vector_table.ld18 . = ALIGN( 1 << LOG2CEIL(4 * 32) );
28 . = ALIGN( 1 << LOG2CEIL(4 * (16 + CONFIG_NUM_IRQS)) );
/Zephyr-latest/subsys/testsuite/coverage/
Dcoverage_ram.ld61 . = ALIGN(1 << LOG2CEIL(. - __gcov_bss_start));
/Zephyr-latest/subsys/demand_paging/eviction/
Dlru.c55 #define PF_IDX_BITS ROUND_UP(LOG2CEIL(K_MEM_NUM_PAGE_FRAMES + 1), BITS_PER_BYTE)
/Zephyr-latest/include/zephyr/sys/
Dutil.h715 #define LOG2CEIL(x) ((x) <= 1 ? 0 : __z_log2((x)-1) + 1) macro
729 #define NHPOT(x) ((x) < 1 ? 1 : ((x) > (1ULL<<63) ? 0 : 1ULL << LOG2CEIL(x)))
/Zephyr-latest/drivers/video/
Dov5640.c532 (LOG2CEIL(PLL_ROOT_DIV) << 4) | (PLL_PRE_DIV & 0x07)); in ov5640_set_frmival()
534 (LOG2CEIL(PCLK_ROOT_DIV) & 0x03 << 4) | in ov5640_set_frmival()
535 (LOG2CEIL(SCLK2X_DIV) & 0x03 << 2) | in ov5640_set_frmival()
536 (LOG2CEIL(SCLK_DIV) & 0x03)); in ov5640_set_frmival()
/Zephyr-latest/drivers/watchdog/
Dwdt_max32.c46 i = LOG2CEIL(number_of_tick); /* Find closest bigger 2^i value than number_of_tick. */ in wdt_max32_calculate_timeout()
/Zephyr-latest/include/zephyr/arch/arm/cortex_a_r/scripts/
Dlinker.ld73 . = ALIGN(1 << LOG2CEIL(region_size))
242 _image_rom_end_order = (LOG2CEIL(__rom_region_end) - 1) << 1;
/Zephyr-latest/soc/andestech/ae350/
Dlinker.ld65 . = ALIGN( 1 << LOG2CEIL(region_size))
215 . = ALIGN( 1 << LOG2CEIL(region_size))
/Zephyr-latest/include/zephyr/arch/arc/v2/
Dlinker.ld44 . = ALIGN( 1 << LOG2CEIL(region_size))
/Zephyr-latest/soc/infineon/cat1b/cyw20829/
Dlinker.ld68 . = ALIGN( 1 << LOG2CEIL(region_size))
/Zephyr-latest/include/zephyr/arch/arm/cortex_m/scripts/
Dlinker.ld75 . = ALIGN( 1 << LOG2CEIL(region_size))
/Zephyr-latest/include/zephyr/arch/riscv/common/
Dlinker.ld94 . = ALIGN( 1 << LOG2CEIL(region_size))
/Zephyr-latest/soc/ite/ec/it8xxx2/
Dlinker.ld58 . = ALIGN( 1 << LOG2CEIL(region_size))
/Zephyr-latest/tests/net/socket/getaddrinfo/src/
Dmain.c43 2 * (LOG2CEIL(DIV_ROUND_UP(CONFIG_NET_SOCKETS_DNS_TIMEOUT,