| /Zephyr-latest/tests/unit/pot/ |
| D | log2ceil.c | 10 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 …]
|
| D | log2ceil.cpp | 10 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/ |
| D | vector_table.ld | 19 . = 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/ |
| D | secure_entry_functions.ld | 11 - MAX(32, (1 << LOG2CEIL(__sg_size)))) 48 || (((1 << LOG2CEIL(NRF_SG_SIZE)) == NRF_SG_SIZE) /* Pow of 2 */
|
| /Zephyr-latest/soc/nxp/s32/s32k3/ |
| D | sections.ld | 19 _rom_region_order = ((LOG2CEIL(__rom_region_end - __rom_region_start) - 1) << 1);
|
| /Zephyr-latest/arch/arm/core/cortex_m/ |
| D | relay_vector_table.ld | 18 . = ALIGN( 1 << LOG2CEIL(4 * 32) ); 28 . = ALIGN( 1 << LOG2CEIL(4 * (16 + CONFIG_NUM_IRQS)) );
|
| /Zephyr-latest/tests/drivers/input/tsc_keys/src/ |
| D | test_stm32_tsc.c | 60 const uint32_t pgpsc = LOG2CEIL(DT_PROP(TSC_NODE, st_pulse_generator_prescaler)); in ZTEST() 66 const uint16_t max_count = LOG2CEIL(DT_PROP(TSC_NODE, st_max_count_value) + 1) - 8; in ZTEST()
|
| /Zephyr-latest/subsys/testsuite/coverage/ |
| D | coverage_ram.ld | 61 . = ALIGN(1 << LOG2CEIL(. - __gcov_bss_start));
|
| /Zephyr-latest/subsys/demand_paging/eviction/ |
| D | lru.c | 55 #define PF_IDX_BITS ROUND_UP(LOG2CEIL(K_MEM_NUM_PAGE_FRAMES + 1), BITS_PER_BYTE)
|
| /Zephyr-latest/include/zephyr/sys/ |
| D | util.h | 715 #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/ |
| D | ov5640.c | 742 (LOG2CEIL(PLL_ROOT_DIV) << 4) | (PLL_PRE_DIV & 0x07)); in ov5640_set_frmival() 744 (LOG2CEIL(PCLK_ROOT_DIV) & 0x03 << 4) | in ov5640_set_frmival() 745 (LOG2CEIL(SCLK2X_DIV) & 0x03 << 2) | in ov5640_set_frmival() 746 (LOG2CEIL(SCLK_DIV) & 0x03)); in ov5640_set_frmival()
|
| /Zephyr-latest/drivers/input/ |
| D | input_tsc_keys.c | 329 .pgpsc = LOG2CEIL(DT_INST_PROP(index, st_pulse_generator_prescaler)), \ 335 .max_count = LOG2CEIL(DT_INST_PROP(index, st_max_count_value) + 1) - 8, \
|
| /Zephyr-latest/drivers/watchdog/ |
| D | wdt_max32.c | 46 i = LOG2CEIL(number_of_tick); /* Find closest bigger 2^i value than number_of_tick. */ in wdt_max32_calculate_timeout()
|
| /Zephyr-latest/subsys/llext/ |
| D | llext_mem.c | 126 block_size = 1 << LOG2CEIL(block_size); /* align to next power of two */ in llext_copy_region()
|
| /Zephyr-latest/include/zephyr/arch/arm/cortex_a_r/scripts/ |
| D | linker.ld | 73 . = ALIGN(1 << LOG2CEIL(region_size)) 242 _image_rom_end_order = (LOG2CEIL(__rom_region_end) - 1) << 1;
|
| /Zephyr-latest/soc/andestech/ae350/ |
| D | linker.ld | 65 . = ALIGN( 1 << LOG2CEIL(region_size)) 215 . = ALIGN( 1 << LOG2CEIL(region_size))
|
| /Zephyr-latest/include/zephyr/arch/arc/v2/ |
| D | linker.ld | 44 . = ALIGN( 1 << LOG2CEIL(region_size))
|
| /Zephyr-latest/soc/infineon/cat1b/cyw20829/ |
| D | linker.ld | 68 . = ALIGN( 1 << LOG2CEIL(region_size))
|
| /Zephyr-latest/include/zephyr/arch/arm/cortex_m/scripts/ |
| D | linker.ld | 75 . = ALIGN( 1 << LOG2CEIL(region_size))
|
| /Zephyr-latest/include/zephyr/arch/riscv/common/ |
| D | linker.ld | 94 . = ALIGN( 1 << LOG2CEIL(region_size))
|
| /Zephyr-latest/soc/ite/ec/it8xxx2/ |
| D | linker.ld | 58 . = ALIGN( 1 << LOG2CEIL(region_size))
|
| /Zephyr-latest/tests/net/socket/getaddrinfo/src/ |
| D | main.c | 43 2 * (LOG2CEIL(DIV_ROUND_UP(CONFIG_NET_SOCKETS_DNS_TIMEOUT,
|