Searched refs:u64_mul_overflow (Results 1 – 5 of 5) sorted by relevance
/Zephyr-latest/tests/unit/math_extras/ |
D | tests.inc | 81 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/ |
D | math_extras.h | 106 static bool u64_mul_overflow(uint64_t a, uint64_t b, uint64_t *result);
|
D | math_extras_impl.h | 100 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/ |
D | pwm.h | 635 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/ |
D | tsic_xx6.c | 230 if (u64_mul_overflow(tmp, FRAME_BIT_PERIOD_US, &tmp)) { in tsic_xx6_get_frame_cycles()
|