Home
last modified time | relevance | path

Searched refs:u64_mul_overflow (Results 1 – 5 of 5) sorted by relevance

/Zephyr-latest/tests/unit/math_extras/
Dtests.inc81 zassert_false(u64_mul_overflow(2, 3, &result));
84 zassert_false(u64_mul_overflow(UINT64_MAX, 1, &result));
86 zassert_true(u64_mul_overflow(UINT64_MAX, 2, &result));
89 zassert_false(u64_mul_overflow(1, UINT64_MAX, &result));
91 zassert_true(u64_mul_overflow(2, UINT64_MAX, &result));
/Zephyr-latest/include/zephyr/sys/
Dmath_extras.h106 static bool u64_mul_overflow(uint64_t a, uint64_t b, uint64_t *result);
Dmath_extras_impl.h100 static inline bool u64_mul_overflow(uint64_t a, uint64_t b, uint64_t *result) in u64_mul_overflow() function
128 static inline bool u64_mul_overflow(uint64_t a, uint64_t b, uint64_t *result) in u64_mul_overflow() function
/Zephyr-latest/include/zephyr/drivers/
Dpwm.h635 if (u64_mul_overflow(cycles, (uint64_t)USEC_PER_SEC, &temp)) { in pwm_cycles_to_usec()
668 if (u64_mul_overflow(cycles, (uint64_t)NSEC_PER_SEC, &temp)) { in pwm_cycles_to_nsec()
/Zephyr-latest/drivers/sensor/tsic_xx6/
Dtsic_xx6.c230 if (u64_mul_overflow(tmp, FRAME_BIT_PERIOD_US, &tmp)) { in tsic_xx6_get_frame_cycles()