Home
last modified time | relevance | path

Searched refs:u32_add_overflow (Results 1 – 12 of 12) sorted by relevance

/Zephyr-latest/tests/unit/math_extras/
Dtests.inc15 zassert_false(u32_add_overflow(2, 3, &result));
18 zassert_false(u32_add_overflow(2, 0, &result));
21 zassert_false(u32_add_overflow(0, 3, &result));
24 zassert_false(u32_add_overflow(0, UINT32_MAX, &result));
26 zassert_true(u32_add_overflow(1, UINT32_MAX, &result));
29 zassert_false(u32_add_overflow(UINT32_MAX, 0, &result));
31 zassert_true(u32_add_overflow(UINT32_MAX, 2, &result));
/Zephyr-latest/drivers/pwm/
Dpwm_mcux_pwt.c170 if (u32_add_overflow(high_overflows, low_overflows, &period)) { in mcux_pwt_calc_period()
180 if (u32_add_overflow(period, ppw, &period)) { in mcux_pwt_calc_period()
185 if (u32_add_overflow(period, npw, &period)) { in mcux_pwt_calc_period()
205 if (u32_add_overflow(pulse, pw, &pulse)) { in mcux_pwt_calc_pulse()
229 data->overflowed |= u32_add_overflow(1, in mcux_pwt_isr()
232 data->overflowed |= u32_add_overflow(1, in mcux_pwt_isr()
Dpwm_mcux_ftm.c349 if (u32_add_overflow(cycles, second_cnv, &cycles)) { in mcux_ftm_capture_second_edge()
/Zephyr-latest/include/zephyr/sys/
Dmath_extras.h51 static bool u32_add_overflow(uint32_t a, uint32_t b, uint32_t *result);
Dmath_extras_impl.h37 static inline bool u32_add_overflow(uint32_t a, uint32_t b, uint32_t *result) in u32_add_overflow() function
61 static inline bool u32_add_overflow(uint32_t a, uint32_t b, uint32_t *result) in u32_add_overflow() function
/Zephyr-latest/arch/arm/core/mpu/cortex_a_r/
Darm_mpu_internal.h139 if (u32_add_overflow(start, size, &end)) { in is_in_region()
/Zephyr-latest/arch/arm/core/mpu/cortex_m/
Darm_mpu_internal.h110 if (u32_add_overflow(start, size, &end)) { in is_in_region()
/Zephyr-latest/drivers/led/
Dled_pwm.c44 if (u32_add_overflow(delay_on, delay_off, &period_usec) || in led_pwm_blink()
/Zephyr-latest/drivers/flash/
Dflash_util.c100 if (u32_add_overflow((uint32_t)offset, (uint32_t)size, &end) || (end > INT32_MAX)) { in off_add_overflow()
Dflash_stm32wb0x.c115 return !u32_add_overflow(offset, len, &offset_plus_len) in is_valid_flash_range()
/Zephyr-latest/arch/arm/core/mpu/
Dnxp_mpu.c525 if (u32_add_overflow(start, size, &end)) { in is_in_region()
Darm_mpu_v8_internal.h381 if (u32_add_overflow(start, size, &end)) { in is_in_region()