Searched refs:u32_mul_overflow (Results 1 – 8 of 8) sorted by relevance
/Zephyr-latest/tests/unit/math_extras/ |
D | tests.inc | 39 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/ |
D | led_pwm.c | 45 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/ |
D | math_extras.h | 98 static bool u32_mul_overflow(uint32_t a, uint32_t b, uint32_t *result);
|
D | math_extras_impl.h | 95 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/ |
D | veaa_x_3.c | 63 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/ |
D | pwm_mcux_pwt.c | 175 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()
|
D | pwm_mcux_ftm.c | 344 if (u32_mul_overflow(overflows, config->base->MOD, &cycles)) { in mcux_ftm_capture_second_edge()
|
/Zephyr-latest/kernel/ |
D | poll.c | 371 if (K_SYSCALL_VERIFY_MSG(!u32_mul_overflow(num_events, in z_vrfy_k_poll()
|