Home
last modified time | relevance | path

Searched refs:add_overflow (Results 1 – 17 of 17) sorted by relevance

/aosp_15_r20/external/trusty/arm-trusted-firmware/lib/transfer_list/
Dtransfer_list.c235 if (add_overflow(last->hdr_size, last->data_size, &sz)) { in transfer_list_next()
250 add_overflow(te->hdr_size, te->data_size, &sz) || in transfer_list_next()
251 add_overflow(va, sz, &ev) || ev > tl_ev) { in transfer_list_next()
334 if (add_overflow(te->hdr_size, te->data_size, &sz) || in transfer_list_set_data_size()
339 if (add_overflow(te->hdr_size, new_data_size, &sz) || in transfer_list_set_data_size()
421 if (add_overflow(sizeof(*te), data_size, &sz) || in transfer_list_add()
/aosp_15_r20/external/trusty/arm-trusted-firmware/include/lib/
Dutils_def.h114 #define add_overflow(a, b, res) __builtin_add_overflow((a), (b), (res)) macro
127 add_overflow((v), __roundup_mask, &__roundup_tmp) ? 1 : \
141 add_overflow((__a), (b), &__add_res) ? 1 : \
/aosp_15_r20/external/llvm-libc/src/__support/
H A Dmath_extras.h57 [[nodiscard]] LIBC_INLINE constexpr bool add_overflow(T a, T b, T &res) { in add_overflow() function
91 T carry1 = add_overflow(a, b, sum); in add_with_carry()
92 T carry2 = add_overflow(sum, carry_in, sum); in add_with_carry()
H A Dbig_int.h549 LIBC_INLINE constexpr WordType add_overflow(const BigInt &rhs) {
555 result.add_overflow(other);
563 other.add_overflow(*this); // Returned carry value is ignored.
568 add_overflow(other); // Returned carry value is ignored.
H A Dfreelist_heap.h102 if (add_overflow(size, (alignment - 1) + Block::ALIGNMENT, request_size)) in allocate_impl()
/aosp_15_r20/external/llvm-libc/test/src/__support/
H A Dmath_extras_test.cpp112 TYPED_TEST(LlvmLibcBlockMathExtrasTest, add_overflow, UnsignedTypes) { in TYPED_TEST() argument
131 bool carry = add_overflow<T>(tc.lhs, tc.rhs, sum); in TYPED_TEST()
/aosp_15_r20/external/cronet/third_party/libc++abi/src/src/
H A Dcxa_vector.cpp138 bool add_overflow(size_t x, size_t y, size_t *res) { in add_overflow() function
156 if (add_overflow(element_heap_size, padding_size, &allocation_size)) in calculate_allocation_size_or_throw()
/aosp_15_r20/external/squashfs-tools/squashfs-tools/
H A Dunsquashfs.c157 int add_overflow(int a, int b) in add_overflow() function
182 if(add_overflow(size, 1) || in queue_init()
2221 if(add_overflow(processors, 3) || in initialise_threads()
2300 if(add_overflow(data_buffer_size, max_files) || in initialise_threads()
2301 add_overflow(data_buffer_size, max_files * 2)) in initialise_threads()
2310 if(add_overflow(fragment_buffer_size, data_buffer_size)) in initialise_threads()
2316 if(add_overflow(all_buffers_size, all_buffers_size)) in initialise_threads()
H A Dcaches-queues-lists.c33 extern int add_overflow(int, int);
46 if(add_overflow(size, 1) || in queue_init()
H A Dmksquashfs.c397 int add_overflow(int a, int b) in add_overflow() function
4373 if(add_overflow(total_mem, fragq)) in initialise_threads()
4376 if(add_overflow(total_mem, bwriteq)) in initialise_threads()
4379 if(add_overflow(total_mem, fwriteq)) in initialise_threads()
/aosp_15_r20/external/compiler-rt/lib/ubsan/
H A Dubsan_handlers.h48 RECOVERABLE(add_overflow, OverflowData *Data, ValueHandle LHS, ValueHandle RHS)
/aosp_15_r20/external/swiftshader/third_party/subzero/src/
H A DIceUtils.h72 inline bool add_overflow(uint32_t x, uint32_t y, uint32_t *sum) { in add_overflow() function
H A DIceOperand.h585 if (Utils::add_overflow(Weight, Delta, &Weight) || Weight == Inf) in addWeight()
/aosp_15_r20/trusty/kernel/lib/ubsan/
H A Dubsan.h181 UBSAN_HANDLER(add_overflow,
H A Dubsan.c218 UBSAN_HANDLER(add_overflow, in UBSAN_HANDLER() argument
/aosp_15_r20/external/coreboot/src/lib/
H A Dubsan.c106 ABORT_VARIANT_VP_VP_VP(add_overflow);
/aosp_15_r20/external/llvm-libc/src/__support/FPUtil/
H A Ddyadic_float.h412 if (result.mantissa.add_overflow(b.mantissa)) { in quick_add()