| /llvm-project-15.0.7/libcxxabi/test/ |
| H A D | cxa_vec_new_overflow_PR41395.pass.cpp | 43 const size_t elem_size = 8; in test_overflow_in_multiplication() local 45 assert(check_mul_overflows(elem_count, elem_size)); in test_overflow_in_multiplication() 48 __cxxabiv1::__cxa_vec_new(elem_count, elem_size, padding, dummy_ctor, in test_overflow_in_multiplication() 58 __cxxabiv1::__cxa_vec_new2(elem_count, elem_size, padding, dummy_ctor, in test_overflow_in_multiplication() 68 __cxxabiv1::__cxa_vec_new3(elem_count, elem_size, padding, dummy_ctor, in test_overflow_in_multiplication() 79 const size_t elem_size = 4; in test_overflow_in_addition() local 86 assert(!check_mul_overflows(elem_count, elem_size)); in test_overflow_in_addition() 87 assert(check_add_overflows(elem_count * elem_size, padding)); in test_overflow_in_addition() 89 __cxxabiv1::__cxa_vec_new(elem_count, elem_size, padding, dummy_ctor, in test_overflow_in_addition() 100 __cxxabiv1::__cxa_vec_new2(elem_count, elem_size, padding, dummy_ctor, in test_overflow_in_addition() [all …]
|
| /llvm-project-15.0.7/libc/src/stdlib/ |
| H A D | qsort.cpp | 25 size_t elem_size; member in __llvm_libc::internal::Array 30 : array(a), array_size(s), elem_size(e), compare(c) {} in Array() 32 uint8_t *get(size_t i) const { return array + i * elem_size; } in get() 37 for (size_t b = 0; b < elem_size; ++b) { in swap() 56 return Array(get(i), s, elem_size, compare); in make_array() 116 (void *array, size_t array_size, size_t elem_size, 118 if (array == nullptr || array_size == 0 || elem_size == 0) 121 array_size, elem_size, compare));
|
| H A D | bsearch.cpp | 18 size_t elem_size, 20 if (key == nullptr || array == nullptr || array_size == 0 || elem_size == 0) 26 reinterpret_cast<const uint8_t *>(array) + mid * elem_size; 40 array = reinterpret_cast<const uint8_t *>(elem) + elem_size;
|
| H A D | bsearch.h | 14 size_t elem_size, int (*compare)(const void *, const void *));
|
| H A D | qsort.h | 16 void qsort(void *array, size_t array_size, size_t elem_size,
|
| /llvm-project-15.0.7/compiler-rt/test/fuzzer/ |
| H A D | CustomAllocator.cpp | 39 extern "C" void *calloc(size_t n, size_t elem_size) { in calloc() argument 45 return __libc_calloc(n, elem_size); in calloc()
|
| /llvm-project-15.0.7/compiler-rt/lib/asan/ |
| H A D | asan_malloc_win.cpp | 151 void *_recalloc(void *p, size_t n, size_t elem_size) { in _recalloc() argument 153 return calloc(n, elem_size); in _recalloc() 154 const size_t size = n * elem_size; in _recalloc() 155 if (elem_size != 0 && size / elem_size != n) in _recalloc() 170 void *_recalloc_base(void *p, size_t n, size_t elem_size) { in _recalloc_base() argument 171 return _recalloc(p, n, elem_size); in _recalloc_base()
|
| H A D | asan_malloc_linux.cpp | 172 void *(*calloc)(uptr n_elements, uptr elem_size); 179 void *(*calloc)(uptr n_elements, uptr elem_size);
|
| /llvm-project-15.0.7/lldb/source/Plugins/ABI/PowerPC/ |
| H A D | ABISysV_ppc64.cpp | 780 llvm::Optional<uint64_t> elem_size = in GetStructValueObject() local 782 if (!elem_size) in GetStructValueObject() 798 m_data_up->GetBytes() + m_dst_offs, *elem_size, m_byte_order, in GetStructValueObject() 800 if (rc != *elem_size) { in GetStructValueObject() 804 m_dst_offs += *elem_size; in GetStructValueObject()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | R600InstrFormats.td | 471 bits<2> elem_size; 481 let Word0{31-30} = elem_size;
|
| H A D | R600Instructions.td | 226 let elem_size = 0; 460 bits<2> elem_size; 467 let Word0{31-30} = elem_size; 542 let elem_size = 3; 556 let elem_size = 0;
|