Searched refs:newcap (Results 1 – 5 of 5) sorted by relevance
/external/llvm-project/libcxx/src/ |
D | ios.cpp | 167 size_t newcap = __ios_new_cap<long>(req_size, __iarray_cap_); in iword() local 168 long* iarray = static_cast<long*>(realloc(__iarray_, newcap * sizeof(long))); in iword() 177 for (long* p = __iarray_ + __iarray_size_; p < __iarray_ + newcap; ++p) in iword() 179 __iarray_cap_ = newcap; in iword() 191 size_t newcap = __ios_new_cap<void *>(req_size, __iarray_cap_); in pword() local 192 void** parray = static_cast<void**>(realloc(__parray_, newcap * sizeof(void *))); in pword() 201 for (void** p = __parray_ + __parray_size_; p < __parray_ + newcap; ++p) in pword() 203 __parray_cap_ = newcap; in pword() 217 size_t newcap = __ios_new_cap<event_callback>(req_size, __event_cap_); in register_callback() local 218 …event_callback* fns = static_cast<event_callback*>(realloc(__fn_, newcap * sizeof(event_callback))… in register_callback() [all …]
|
/external/libcxx/src/ |
D | ios.cpp | 184 size_t newcap = __ios_new_cap<long>(req_size, __iarray_cap_); in iword() local 185 long* iarray = static_cast<long*>(realloc(__iarray_, newcap * sizeof(long))); in iword() 194 for (long* p = __iarray_ + __iarray_size_; p < __iarray_ + newcap; ++p) in iword() 196 __iarray_cap_ = newcap; in iword() 208 size_t newcap = __ios_new_cap<void *>(req_size, __iarray_cap_); in pword() local 209 void** parray = static_cast<void**>(realloc(__parray_, newcap * sizeof(void *))); in pword() 218 for (void** p = __parray_ + __parray_size_; p < __parray_ + newcap; ++p) in pword() 220 __parray_cap_ = newcap; in pword() 234 size_t newcap = __ios_new_cap<event_callback>(req_size, __event_cap_); in register_callback() local 235 …event_callback* fns = static_cast<event_callback*>(realloc(__fn_, newcap * sizeof(event_callback))… in register_callback() [all …]
|
/external/mesa3d/src/util/ |
D | u_dynarray.h | 82 util_dynarray_ensure_cap(struct util_dynarray *buf, unsigned newcap) in util_dynarray_ensure_cap() argument 84 if (newcap > buf->capacity) { in util_dynarray_ensure_cap() 85 unsigned capacity = MAX3(DYN_ARRAY_INITIAL_SIZE, buf->capacity * 2, newcap); in util_dynarray_ensure_cap()
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/bytestring/ |
D | cbb.c | 109 size_t newcap = base->cap * 2; in cbb_buffer_reserve() local 116 if (newcap < base->cap || newcap < newlen) { in cbb_buffer_reserve() 117 newcap = newlen; in cbb_buffer_reserve() 119 newbuf = OPENSSL_realloc(base->buf, newcap); in cbb_buffer_reserve() 125 base->cap = newcap; in cbb_buffer_reserve()
|
/external/boringssl/src/crypto/bytestring/ |
D | cbb.c | 109 size_t newcap = base->cap * 2; in cbb_buffer_reserve() local 116 if (newcap < base->cap || newcap < newlen) { in cbb_buffer_reserve() 117 newcap = newlen; in cbb_buffer_reserve() 119 newbuf = OPENSSL_realloc(base->buf, newcap); in cbb_buffer_reserve() 125 base->cap = newcap; in cbb_buffer_reserve()
|