Home
last modified time | relevance | path

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

/Zephyr-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/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-Core-3.6.0/arch/arm/core/cortex_m/
Drelay_vector_table.ld18 . = ALIGN( 1 << LOG2CEIL(4 * 32) );
28 . = ALIGN( 1 << LOG2CEIL(4 * (16 + CONFIG_NUM_IRQS)) );
/Zephyr-Core-3.6.0/soc/arm/nxp_s32/s32k3/
Dsections.ld19 _rom_region_order = ((LOG2CEIL(__rom_region_end - __rom_region_start) - 1) << 1);
/Zephyr-Core-3.6.0/subsys/testsuite/coverage/
Dcoverage_ram.ld61 . = ALIGN(1 << LOG2CEIL(. - __gcov_bss_start));
/Zephyr-Core-3.6.0/include/zephyr/sys/
Dutil.h633 #define LOG2CEIL(x) ((x) < 1 ? 0 : __z_log2((x)-1) + 1) macro
647 #define NHPOT(x) ((x) < 1 ? 1 : ((x) > (1ULL<<63) ? 0 : 1ULL << LOG2CEIL(x)))
/Zephyr-Core-3.6.0/include/zephyr/arch/arm/cortex_a_r/scripts/
Dlinker.ld76 . = ALIGN(1 << LOG2CEIL(region_size))
234 _image_rom_end_order = (LOG2CEIL(__rom_region_end) - 1) << 1;
/Zephyr-Core-3.6.0/soc/riscv/andes_v5/ae350/
Dlinker.ld65 . = ALIGN( 1 << LOG2CEIL(region_size))
207 . = ALIGN( 1 << LOG2CEIL(region_size))
/Zephyr-Core-3.6.0/include/zephyr/arch/arc/v2/
Dlinker.ld44 . = ALIGN( 1 << LOG2CEIL(region_size))
/Zephyr-Core-3.6.0/include/zephyr/arch/riscv/common/
Dlinker.ld89 . = ALIGN( 1 << LOG2CEIL(region_size))
/Zephyr-Core-3.6.0/include/zephyr/arch/arm/cortex_m/scripts/
Dlinker.ld78 . = ALIGN( 1 << LOG2CEIL(region_size))
/Zephyr-Core-3.6.0/soc/riscv/ite_ec/it8xxx2/
Dlinker.ld58 . = ALIGN( 1 << LOG2CEIL(region_size))