Home
last modified time | relevance | path

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

/external/llvm-libc/src/__support/
Dmath_extras.h62 [[nodiscard]] LIBC_INLINE constexpr bool sub_overflow(T a, T b, T &res) { in sub_overflow() function
116 T carry1 = sub_overflow(a, b, sub); in sub_with_borrow()
117 T carry2 = sub_overflow(sub, carry_in, sub); in sub_with_borrow()
Dbig_int.h487 LIBC_INLINE constexpr WordType sub_overflow(const BigInt &rhs) {
493 result.sub_overflow(other); // Returned carry value is ignored.
499 result.sub_overflow(other); // Returned carry value is ignored.
505 sub_overflow(other); // Returned carry value is ignored.
/external/llvm-libc/test/src/__support/
Dmath_extras_test.cpp136 TYPED_TEST(LlvmLibcBlockMathExtrasTest, sub_overflow, UnsignedTypes) { in TYPED_TEST() argument
155 bool carry = sub_overflow<T>(tc.lhs, tc.rhs, sub); in TYPED_TEST()
Dbig_int_test.cpp746 uint64_t overflow = trunc.sub_overflow(hi); \
/external/compiler-rt/lib/ubsan/
Dubsan_handlers.h51 RECOVERABLE(sub_overflow, OverflowData *Data, ValueHandle LHS, ValueHandle RHS)