Home
last modified time | relevance | path

Searched refs:u64_add_overflow (Results 1 – 6 of 6) sorted by relevance

/Zephyr-latest/tests/unit/math_extras/
Dtests.inc57 zassert_false(u64_add_overflow(2, 3, &result));
60 zassert_false(u64_add_overflow(2, 0, &result));
63 zassert_false(u64_add_overflow(0, 3, &result));
66 zassert_false(u64_add_overflow(0, UINT64_MAX, &result));
68 zassert_true(u64_add_overflow(1, UINT64_MAX, &result));
71 zassert_false(u64_add_overflow(UINT64_MAX, 0, &result));
73 zassert_true(u64_add_overflow(UINT64_MAX, 2, &result));
/Zephyr-latest/include/zephyr/sys/
Dmath_extras.h60 static bool u64_add_overflow(uint64_t a, uint64_t b, uint64_t *result);
Dmath_extras_impl.h42 static inline bool u64_add_overflow(uint64_t a, uint64_t b, uint64_t *result) in u64_add_overflow() function
70 static inline bool u64_add_overflow(uint64_t a, uint64_t b, uint64_t *result) in u64_add_overflow() function
/Zephyr-latest/drivers/flash/
Dflash_util.c107 if (u64_add_overflow((uint64_t)offset, (uint64_t)size, &end) || (end > INT64_MAX)) { in off_add_overflow()
/Zephyr-latest/lib/os/zvfs/
Dzvfs_eventfd.c145 if (u64_add_overflow(efd->cnt, *value, &result) || result == UINT64_MAX) { in zvfs_eventfd_write_locked()
/Zephyr-latest/subsys/net/lib/dhcpv6/
Ddhcpv6.c115 u64_add_overflow(now, 1000ULL * t1, &t1_abs)) { in dhcvp6_update_deadlines()
120 u64_add_overflow(now, 1000ULL * t2, &t2_abs)) { in dhcvp6_update_deadlines()
125 u64_add_overflow(now, 1000ULL * valid_lifetime, &expire_abs)) { in dhcvp6_update_deadlines()
148 if (u64_add_overflow(now, timeout, &iface->config.dhcpv6.timeout)) { in dhcpv6_set_timeout()