Home
last modified time | relevance | path

Searched refs:u32_mul_overflow (Results 1 – 8 of 8) sorted by relevance

/Zephyr-latest/tests/unit/math_extras/
Dtests.inc39 zassert_false(u32_mul_overflow(2, 3, &result));
42 zassert_false(u32_mul_overflow(UINT32_MAX, 1, &result));
44 zassert_true(u32_mul_overflow(UINT32_MAX, 2, &result));
47 zassert_false(u32_mul_overflow(1, UINT32_MAX, &result));
49 zassert_true(u32_mul_overflow(2, UINT32_MAX, &result));
/Zephyr-latest/drivers/led/
Dled_pwm.c45 u32_mul_overflow(period_usec, 1000, &period_usec) || in led_pwm_blink()
46 u32_mul_overflow(delay_on, 1000, &pulse_usec)) { in led_pwm_blink()
/Zephyr-latest/include/zephyr/sys/
Dmath_extras.h98 static bool u32_mul_overflow(uint32_t a, uint32_t b, uint32_t *result);
Dmath_extras_impl.h95 static inline bool u32_mul_overflow(uint32_t a, uint32_t b, uint32_t *result) in u32_mul_overflow() function
119 static inline bool u32_mul_overflow(uint32_t a, uint32_t b, uint32_t *result) in u32_mul_overflow() function
/Zephyr-latest/drivers/sensor/veaa_x_3/
Dveaa_x_3.c63 if (u32_mul_overflow(tmp, BIT(cfg->dac_resolution) - 1, &tmp)) { in veaa_x_3_attr_set()
137 if (u32_mul_overflow(data->adc_buf, veaa_x_3_kpa_range(cfg), &val->val1)) { in veaa_x_3_channel_get()
/Zephyr-latest/drivers/pwm/
Dpwm_mcux_pwt.c175 if (u32_mul_overflow(period, 0xFFFFU, &period)) { in mcux_pwt_calc_period()
200 if (u32_mul_overflow(overflows, 0xFFFFU, &pulse)) { in mcux_pwt_calc_pulse()
Dpwm_mcux_ftm.c344 if (u32_mul_overflow(overflows, config->base->MOD, &cycles)) { in mcux_ftm_capture_second_edge()
/Zephyr-latest/kernel/
Dpoll.c371 if (K_SYSCALL_VERIFY_MSG(!u32_mul_overflow(num_events, in z_vrfy_k_poll()