Home
last modified time | relevance | path

Searched refs:old_size (Results 1 – 25 of 52) sorted by relevance

123

/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_vector.h79 uptr old_size = Size(); in Resize() local
80 if (size <= old_size) { in Resize()
85 if (old_size < size) { in Resize()
86 internal_memset(&begin_[old_size], 0, in Resize()
87 sizeof(begin_[old_size]) * (size - old_size)); in Resize()
H A Dsanitizer_allocator_combined.h106 uptr old_size = GetActuallyAllocatedSize(p); in Reallocate() local
107 uptr memcpy_size = Min(new_size, old_size); in Reallocate()
/llvm-project-15.0.7/compiler-rt/lib/asan/
H A Dasan_malloc_win.cpp158 size_t old_size = _msize(p); in _recalloc() local
161 REAL(memcpy)(new_alloc, p, Min<size_t>(size, old_size)); in _recalloc()
162 if (old_size < size) in _recalloc()
163 REAL(memset)(((u8 *)new_alloc) + old_size, 0, size - old_size); in _recalloc()
317 size_t old_size = heapSizeFunc(hHeap, dwFlags, lpMem); in SharedReAlloc() local
318 if (old_size == ((size_t)0) - 1) { in SharedReAlloc()
322 REAL(memcpy)(replacement_alloc, lpMem, old_size); in SharedReAlloc()
371 size_t old_size; in SharedReAlloc() local
373 old_size = asan_malloc_usable_size(lpMem, pc, bp); in SharedReAlloc()
381 if (old_size < new_size) in SharedReAlloc()
[all …]
/llvm-project-15.0.7/compiler-rt/lib/dfsan/
H A Ddfsan_allocator.cpp145 uptr old_size = meta->requested_size; in DFsanReallocate() local
150 if (new_size > old_size && flags().zero_in_malloc) in DFsanReallocate()
151 dfsan_set_label(0, (char *)old_p + old_size, new_size - old_size); in DFsanReallocate()
154 uptr memcpy_size = Min(new_size, old_size); in DFsanReallocate()
/llvm-project-15.0.7/polly/lib/External/isl/
H A Disl_hash.c81 size_t old_size, size; in grow_table() local
86 old_size = 1 << table->bits; in grow_table()
87 size = 2 * old_size; in grow_table()
99 for (h = 0; h < old_size; ++h) { in grow_table()
H A Disl_vec.c90 int old_size, extra; in isl_vec_expand() local
103 old_size = vec->size; in isl_vec_expand()
105 vec = isl_vec_extend(vec, old_size + extra); in isl_vec_expand()
110 for (i = old_size - 1; i >= pos + n; --i) in isl_vec_expand()
/llvm-project-15.0.7/libcxx/test/std/strings/basic.string/string.modifiers/string_erase/
H A Dsize_size.pass.cpp25 const typename S::size_type old_size = s.size(); in test() local
27 if (pos <= old_size) in test()
44 assert(pos > old_size); in test()
55 const typename S::size_type old_size = s.size(); in test() local
57 if (pos <= old_size) in test()
74 assert(pos > old_size); in test()
/llvm-project-15.0.7/compiler-rt/lib/msan/
H A Dmsan_allocator.cpp234 uptr old_size = meta->requested_size; in MsanReallocate() local
239 if (new_size > old_size) { in MsanReallocate()
242 PoisonMemory((char *)old_p + old_size, new_size - old_size, stack); in MsanReallocate()
247 uptr memcpy_size = Min(new_size, old_size); in MsanReallocate()
/llvm-project-15.0.7/libcxx/src/
H A Dstrstream.cpp164 size_t old_size = static_cast<size_t> ((epptr() ? epptr() : egptr()) - eback()); in overflow() local
165 size_t new_size = max<size_t>(static_cast<size_t>(__alsize_), 2*old_size); in overflow()
175 if (old_size != 0) { in overflow()
177 memcpy(buf, eback(), static_cast<size_t>(old_size)); in overflow()
/llvm-project-15.0.7/libcxx/test/std/strings/basic.string/string.modifiers/string_replace/
H A Dsize_size_pointer.pass.cpp27 const typename S::size_type old_size = s.size(); in test() local
29 if (pos <= old_size) in test()
34 typename S::size_type xlen = std::min(n1, old_size - pos); in test()
36 assert(s.size() == old_size - xlen + rlen); in test()
48 assert(pos > old_size); in test()
H A Dsize_size_size_char.pass.cpp28 const typename S::size_type old_size = s.size(); in test() local
30 if (pos <= old_size) in test()
35 typename S::size_type xlen = std::min(n1, old_size - pos); in test()
37 assert(s.size() == old_size - xlen + rlen); in test()
49 assert(pos > old_size); in test()
H A Dsize_size_string_view.pass.cpp26 const typename S::size_type old_size = s.size(); in test() local
28 if (pos1 <= old_size) in test()
33 typename S::size_type xlen = std::min(n1, old_size - pos1); in test()
35 assert(s.size() == old_size - xlen + rlen); in test()
47 assert(pos1 > old_size); in test()
H A Dsize_size_string.pass.cpp26 const typename S::size_type old_size = s.size(); in test() local
28 if (pos1 <= old_size) in test()
33 typename S::size_type xlen = std::min(n1, old_size - pos1); in test()
35 assert(s.size() == old_size - xlen + rlen); in test()
47 assert(pos1 > old_size); in test()
/llvm-project-15.0.7/libcxx/test/std/strings/basic.string/string.modifiers/string_insert/
H A Dsize_size_char.pass.cpp26 const typename S::size_type old_size = s.size(); in test() local
28 if (pos <= old_size) in test()
44 assert(pos > old_size); in test()
H A Dsize_pointer.pass.cpp25 const typename S::size_type old_size = s.size(); in test() local
27 if (pos <= old_size) in test()
43 assert(pos > old_size); in test()
H A Dsize_string.pass.cpp25 const typename S::size_type old_size = s.size(); in test() local
27 if (pos <= old_size) in test()
43 assert(pos > old_size); in test()
H A Dstring_view.pass.cpp25 const typename S::size_type old_size = s.size(); in test() local
27 if (pos <= old_size) in test()
43 assert(pos > old_size); in test()
H A Dsize_pointer_size.pass.cpp26 const typename S::size_type old_size = s.size(); in test() local
28 if (pos <= old_size) in test()
44 assert(pos > old_size); in test()
/llvm-project-15.0.7/libcxx/test/std/containers/sequences/forwardlist/forwardlist.ops/
H A Dunique.pass.cpp24 typename L::size_type old_size = std::distance(l.begin(), l.end()); in do_unique() local
32 assert(old_size - std::distance(l.begin(), l.end()) == expected); in do_unique()
H A Dunique_pred.pass.cpp25 typename L::size_type old_size = std::distance(l.begin(), l.end()); in do_unique() local
33 assert(old_size - std::distance(l.begin(), l.end()) == expected); in do_unique()
H A Dremove.pass.cpp24 typename L::size_type old_size = std::distance(l.begin(), l.end()); in do_remove() local
32 assert(old_size - std::distance(l.begin(), l.end()) == expected); in do_remove()
H A Dremove_if.pass.cpp28 typename L::size_type old_size = std::distance(l.begin(), l.end()); in do_remove_if() local
36 assert(old_size - std::distance(l.begin(), l.end()) == expected); in do_remove_if()
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_bitvector_test.cpp106 size_t old_size = s.size(); in TestBitVector() local
108 EXPECT_EQ(bv.clearBit(bit), old_size > s.size()); in TestBitVector()
/llvm-project-15.0.7/lldb/source/Core/
H A DModuleList.cpp421 const size_t old_size = sc_list.GetSize(); in FindFunctions() local
435 if (old_size < new_size) in FindFunctions()
436 lookup_info.Prune(sc_list, old_size); in FindFunctions()
449 const size_t old_size = sc_list.GetSize(); in FindFunctionSymbols() local
462 if (old_size < new_size) in FindFunctionSymbols()
463 lookup_info.Prune(sc_list, old_size); in FindFunctionSymbols()
/llvm-project-15.0.7/lldb/source/Target/
H A DLanguage.cpp388 size_t old_size = results.size(); in Find() local
391 return results.size() - old_size; in Find()

123