Home
last modified time | relevance | path

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

12345678

/external/tensorflow/tensorflow/core/platform/
Dstrcat_test.cc233 string::size_type old_size = result.size(); in TEST() local
235 EXPECT_EQ(result.substr(old_size), "Hello"); in TEST()
237 old_size = result.size(); in TEST()
239 EXPECT_EQ(result.substr(old_size), "CruelWorld"); in TEST()
241 old_size = result.size(); in TEST()
243 EXPECT_EQ(result.substr(old_size), "Hello, World"); in TEST()
245 old_size = result.size(); in TEST()
248 EXPECT_EQ(result.substr(old_size), "Hello, Cruel World!"); in TEST()
250 old_size = result.size(); in TEST()
253 EXPECT_EQ(result.substr(old_size), "Hello, Cruel World"); in TEST()
[all …]
Dprotobuf.cc26 size_t old_size = target_->size(); in Next() local
29 if (old_size < target_->capacity()) { in Next()
35 if (old_size > std::numeric_limits<size_t>::max() / 2) { in Next()
43 old_size * 2, in Next()
47 *data = target_->data() + old_size; in Next()
48 *size = target_->size() - old_size; in Next()
Dstrcat.cc167 size_t old_size = result->size(); in AppendPieces() local
168 size_t total_size = old_size; in AppendPieces()
176 char *out = begin + old_size; in AppendPieces()
195 string::size_type old_size = result->size(); in StrAppend() local
196 STLStringResizeUninitialized(result, old_size + a.size() + b.size()); in StrAppend()
198 char *out = Append2(begin + old_size, a, b); in StrAppend()
207 string::size_type old_size = result->size(); in StrAppend() local
209 old_size + a.size() + b.size() + c.size()); in StrAppend()
211 char *out = Append2(begin + old_size, a, b); in StrAppend()
222 string::size_type old_size = result->size(); in StrAppend() local
[all …]
/external/icing/icing/absl_ports/
Dstr_cat.cc127 std::string::size_type old_size = dest->size(); in StrAppend() local
128 std::string::size_type new_size = old_size + a.length(); in StrAppend()
131 char* out = &(*dest)[old_size]; in StrAppend()
136 std::string::size_type old_size = dest->size(); in StrAppend() local
137 std::string::size_type new_size = old_size + a.length() + b.length(); in StrAppend()
140 char* out = &(*dest)[old_size]; in StrAppend()
147 std::string::size_type old_size = dest->size(); in StrAppend() local
149 old_size + a.length() + b.length() + c.length(); in StrAppend()
152 char* out = &(*dest)[old_size]; in StrAppend()
160 std::string::size_type old_size = dest->size(); in StrAppend() local
[all …]
/external/ltp/testcases/kernel/syscalls/mremap/
Dmremap05.c53 size_t old_size; /* in pages */ member
76 .old_size = 1,
85 .old_size = 1,
94 .old_size = 2,
103 .old_size = 1,
110 .old_size = 1,
140 t->ret = mremap(t->old_address, t->old_size, t->new_size, t->flags, in test_mremap()
164 t->old_address = get_test_area(t->old_size * pagesize, 0); in setup0()
170 t->old_address = get_test_area(t->old_size * pagesize, 0); in setup1()
176 t->old_address = get_test_area(t->old_size * pagesize, 0); in setup2()
[all …]
/external/openscreen/third_party/abseil/src/absl/strings/
Dstr_cat_test.cc341 std::string::size_type old_size = result.size(); in TEST() local
343 EXPECT_EQ(result.size(), old_size); in TEST()
345 old_size = result.size(); in TEST()
347 EXPECT_EQ(result.substr(old_size), "Hello"); in TEST()
349 old_size = result.size(); in TEST()
351 EXPECT_EQ(result.substr(old_size), "CruelWorld"); in TEST()
353 old_size = result.size(); in TEST()
355 EXPECT_EQ(result.substr(old_size), "std::Hello, World"); in TEST()
357 old_size = result.size(); in TEST()
359 EXPECT_EQ(result.substr(old_size), "Hello, std::Cruel World!"); in TEST()
[all …]
Dstr_cat.cc171 size_t old_size = dest->size(); in AppendPieces() local
172 size_t total_size = old_size; in AppendPieces()
180 char* out = begin + old_size; in AppendPieces()
201 std::string::size_type old_size = dest->size(); in StrAppend() local
203 dest, old_size + a.size() + b.size()); in StrAppend()
205 char* out = begin + old_size; in StrAppend()
216 std::string::size_type old_size = dest->size(); in StrAppend() local
218 dest, old_size + a.size() + b.size() + c.size()); in StrAppend()
220 char* out = begin + old_size; in StrAppend()
233 std::string::size_type old_size = dest->size(); in StrAppend() local
[all …]
/external/abseil-cpp/absl/strings/
Dstr_cat_test.cc341 std::string::size_type old_size = result.size(); in TEST() local
343 EXPECT_EQ(result.size(), old_size); in TEST()
345 old_size = result.size(); in TEST()
347 EXPECT_EQ(result.substr(old_size), "Hello"); in TEST()
349 old_size = result.size(); in TEST()
351 EXPECT_EQ(result.substr(old_size), "CruelWorld"); in TEST()
353 old_size = result.size(); in TEST()
355 EXPECT_EQ(result.substr(old_size), "std::Hello, World"); in TEST()
357 old_size = result.size(); in TEST()
359 EXPECT_EQ(result.substr(old_size), "Hello, std::Cruel World!"); in TEST()
[all …]
Dstr_cat.cc171 size_t old_size = dest->size(); in AppendPieces() local
172 size_t total_size = old_size; in AppendPieces()
180 char* out = begin + old_size; in AppendPieces()
201 std::string::size_type old_size = dest->size(); in StrAppend() local
203 dest, old_size + a.size() + b.size()); in StrAppend()
205 char* out = begin + old_size; in StrAppend()
216 std::string::size_type old_size = dest->size(); in StrAppend() local
218 dest, old_size + a.size() + b.size() + c.size()); in StrAppend()
220 char* out = begin + old_size; in StrAppend()
233 std::string::size_type old_size = dest->size(); in StrAppend() local
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/
Dstr_cat_test.cc341 std::string::size_type old_size = result.size(); in TEST() local
343 EXPECT_EQ(result.size(), old_size); in TEST()
345 old_size = result.size(); in TEST()
347 EXPECT_EQ(result.substr(old_size), "Hello"); in TEST()
349 old_size = result.size(); in TEST()
351 EXPECT_EQ(result.substr(old_size), "CruelWorld"); in TEST()
353 old_size = result.size(); in TEST()
355 EXPECT_EQ(result.substr(old_size), "std::Hello, World"); in TEST()
357 old_size = result.size(); in TEST()
359 EXPECT_EQ(result.substr(old_size), "Hello, std::Cruel World!"); in TEST()
[all …]
Dstr_cat.cc171 size_t old_size = dest->size(); in AppendPieces() local
172 size_t total_size = old_size; in AppendPieces()
180 char* out = begin + old_size; in AppendPieces()
201 std::string::size_type old_size = dest->size(); in StrAppend() local
203 dest, old_size + a.size() + b.size()); in StrAppend()
205 char* out = begin + old_size; in StrAppend()
216 std::string::size_type old_size = dest->size(); in StrAppend() local
218 dest, old_size + a.size() + b.size() + c.size()); in StrAppend()
220 char* out = begin + old_size; in StrAppend()
233 std::string::size_type old_size = dest->size(); in StrAppend() local
[all …]
/external/webrtc/third_party/abseil-cpp/absl/strings/
Dstr_cat_test.cc341 std::string::size_type old_size = result.size(); in TEST() local
343 EXPECT_EQ(result.size(), old_size); in TEST()
345 old_size = result.size(); in TEST()
347 EXPECT_EQ(result.substr(old_size), "Hello"); in TEST()
349 old_size = result.size(); in TEST()
351 EXPECT_EQ(result.substr(old_size), "CruelWorld"); in TEST()
353 old_size = result.size(); in TEST()
355 EXPECT_EQ(result.substr(old_size), "std::Hello, World"); in TEST()
357 old_size = result.size(); in TEST()
359 EXPECT_EQ(result.substr(old_size), "Hello, std::Cruel World!"); in TEST()
[all …]
Dstr_cat.cc171 size_t old_size = dest->size(); in AppendPieces() local
172 size_t total_size = old_size; in AppendPieces()
180 char* out = begin + old_size; in AppendPieces()
201 std::string::size_type old_size = dest->size(); in StrAppend() local
203 dest, old_size + a.size() + b.size()); in StrAppend()
205 char* out = begin + old_size; in StrAppend()
216 std::string::size_type old_size = dest->size(); in StrAppend() local
218 dest, old_size + a.size() + b.size() + c.size()); in StrAppend()
220 char* out = begin + old_size; in StrAppend()
233 std::string::size_type old_size = dest->size(); in StrAppend() local
[all …]
/external/libtextclassifier/abseil-cpp/absl/strings/
Dstr_cat_test.cc341 std::string::size_type old_size = result.size(); in TEST() local
343 EXPECT_EQ(result.size(), old_size); in TEST()
345 old_size = result.size(); in TEST()
347 EXPECT_EQ(result.substr(old_size), "Hello"); in TEST()
349 old_size = result.size(); in TEST()
351 EXPECT_EQ(result.substr(old_size), "CruelWorld"); in TEST()
353 old_size = result.size(); in TEST()
355 EXPECT_EQ(result.substr(old_size), "std::Hello, World"); in TEST()
357 old_size = result.size(); in TEST()
359 EXPECT_EQ(result.substr(old_size), "Hello, std::Cruel World!"); in TEST()
[all …]
Dstr_cat.cc171 size_t old_size = dest->size(); in AppendPieces() local
172 size_t total_size = old_size; in AppendPieces()
180 char* out = begin + old_size; in AppendPieces()
201 std::string::size_type old_size = dest->size(); in StrAppend() local
203 dest, old_size + a.size() + b.size()); in StrAppend()
205 char* out = begin + old_size; in StrAppend()
216 std::string::size_type old_size = dest->size(); in StrAppend() local
218 dest, old_size + a.size() + b.size() + c.size()); in StrAppend()
220 char* out = begin + old_size; in StrAppend()
233 std::string::size_type old_size = dest->size(); in StrAppend() local
[all …]
/external/angle/third_party/abseil-cpp/absl/strings/
Dstr_cat_test.cc341 std::string::size_type old_size = result.size(); in TEST() local
343 EXPECT_EQ(result.size(), old_size); in TEST()
345 old_size = result.size(); in TEST()
347 EXPECT_EQ(result.substr(old_size), "Hello"); in TEST()
349 old_size = result.size(); in TEST()
351 EXPECT_EQ(result.substr(old_size), "CruelWorld"); in TEST()
353 old_size = result.size(); in TEST()
355 EXPECT_EQ(result.substr(old_size), "std::Hello, World"); in TEST()
357 old_size = result.size(); in TEST()
359 EXPECT_EQ(result.substr(old_size), "Hello, std::Cruel World!"); in TEST()
[all …]
Dstr_cat.cc171 size_t old_size = dest->size(); in AppendPieces() local
172 size_t total_size = old_size; in AppendPieces()
180 char* out = begin + old_size; in AppendPieces()
201 std::string::size_type old_size = dest->size(); in StrAppend() local
203 dest, old_size + a.size() + b.size()); in StrAppend()
205 char* out = begin + old_size; in StrAppend()
216 std::string::size_type old_size = dest->size(); in StrAppend() local
218 dest, old_size + a.size() + b.size() + c.size()); in StrAppend()
220 char* out = begin + old_size; in StrAppend()
233 std::string::size_type old_size = dest->size(); in StrAppend() local
[all …]
/external/perfetto/include/perfetto/ext/base/
Dcontainer_annotations.h32 #define ANNOTATE_DELETE_BUFFER(buffer, capacity, old_size) \ argument
35 (buffer) + (old_size), \
38 #define ANNOTATE_CHANGE_SIZE(buffer, capacity, old_size, new_size) \ argument
41 (buffer) + (old_size), \
51 #define ANNOTATE_DELETE_BUFFER(buffer, capacity, old_size) argument
52 #define ANNOTATE_CHANGE_SIZE(buffer, capacity, old_size, new_size) argument
/external/grpc-grpc/tools/profiling/ios_bin/
Dbinary_size.py95 old_size = None variable
106 old_size = get_size('old', frameworks) variable
116 if old_size == None:
124 if abs(new_size[i] - old_size[i]) < diff_threshold:
126 if new_size[i] > old_size[i]:
133 old_size[i]))
135 if new_size[i] > old_size[i]:
137 elif new_size[i] < old_size[i]:
143 '{:,}'.format(old_size[i]))
/external/rust/crates/grpcio-sys/grpc/tools/profiling/ios_bin/
Dbinary_size.py93 old_size = None variable
104 old_size = get_size('old', frameworks) variable
114 if old_size == None:
122 if abs(new_size[i] - old_size[i]) < diff_threshold:
124 if new_size[i] > old_size[i]:
131 '{:,}'.format(old_size[i]))
133 if new_size[i] > old_size[i]:
135 elif new_size[i] < old_size[i]:
141 '{:,}'.format(old_size[i]))
/external/perfetto/src/protozero/
Dpacked_repeated_fields.cc28 size_t old_size = static_cast<size_t>(storage_end_ - storage_begin_); in GrowSlowpath() local
29 size_t new_size = old_size < 65536 ? (old_size * 2) : (old_size * 3 / 2); in GrowSlowpath()
32 memcpy(new_buf.get(), storage_begin_, old_size); in GrowSlowpath()
/external/webrtc/rtc_base/
Dbuffer.h209 const size_t old_size = size_; in SetData() local
212 if (ZeroOnFree && size_ < old_size) { in SetData()
213 ZeroTrailingData(old_size - size_); in SetData()
247 const size_t old_size = size_; in SetData() local
250 if (ZeroOnFree && size_ < old_size) { in SetData()
251 ZeroTrailingData(old_size - size_); in SetData()
308 const size_t old_size = size_; in AppendData() local
309 SetSize(old_size + max_elements); in AppendData()
310 U* base_ptr = data<U>() + old_size; in AppendData()
314 size_ = old_size + written_elements; in AppendData()
[all …]
/external/freetype/src/lzw/
Dftzopen.c125 FT_Offset old_size = state->stack_size; in ft_lzwstate_stack_grow() local
126 FT_Offset new_size = old_size; in ft_lzwstate_stack_grow()
133 old_size = 0; in ft_lzwstate_stack_grow()
141 if ( new_size == old_size ) in ft_lzwstate_stack_grow()
145 if ( FT_RENEW_ARRAY( state->stack, old_size, new_size ) ) in ft_lzwstate_stack_grow()
158 FT_UInt old_size = state->prefix_size; in ft_lzwstate_prefix_grow() local
159 FT_UInt new_size = old_size; in ft_lzwstate_prefix_grow()
177 if ( FT_REALLOC_MULT( state->prefix, old_size, new_size, in ft_lzwstate_prefix_grow()
185 state->prefix + old_size, in ft_lzwstate_prefix_grow()
186 old_size * sizeof ( FT_Byte ) ); in ft_lzwstate_prefix_grow()
/external/llvm-project/compiler-rt/lib/asan/
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 …]
/external/eigen/Eigen/src/Core/util/
DMemory.h188 inline void* aligned_realloc(void *ptr, std::size_t new_size, std::size_t old_size) in aligned_realloc() argument
190 EIGEN_UNUSED_VARIABLE(old_size); in aligned_realloc()
196 result = handmade_aligned_realloc(ptr,new_size,old_size); in aligned_realloc()
238 …gn> inline void* conditional_aligned_realloc(void* ptr, std::size_t new_size, std::size_t old_size) in conditional_aligned_realloc() argument
240 return aligned_realloc(ptr, new_size, old_size); in conditional_aligned_realloc()
346 …_FUNC inline T* conditional_aligned_realloc_new(T* pts, std::size_t new_size, std::size_t old_size) in conditional_aligned_realloc_new() argument
349 check_size_for_overflow<T>(old_size); in conditional_aligned_realloc_new()
350 if(new_size < old_size) in conditional_aligned_realloc_new()
351 destruct_elements_of_array(pts+new_size, old_size-new_size); in conditional_aligned_realloc_new()
352 …onal_aligned_realloc<Align>(reinterpret_cast<void*>(pts), sizeof(T)*new_size, sizeof(T)*old_size)); in conditional_aligned_realloc_new()
[all …]

12345678