Home
last modified time | relevance | path

Searched refs:new_size (Results 1 – 4 of 4) sorted by relevance

/frameworks/native/libs/utils/
DVectorImpl.cpp356 const size_t new_size = mCount + amount; in _grow() local
357 if (capacity() < new_size) { in _grow()
358 const size_t new_capacity = max(kMinVectorCapacity, ((new_size*3)+1)/2); in _grow()
392 mCount = new_size; in _grow()
409 const size_t new_size = mCount - amount; in _shrink() local
410 if (new_size*3 < capacity()) { in _shrink()
411 const size_t new_capacity = max(kMinVectorCapacity, new_size*2); in _shrink()
413 if ((where == new_size) && in _shrink()
427 if (where != new_size) { in _shrink()
430 _do_copy(dest, from, new_size - where); in _shrink()
[all …]
DSharedBuffer.cpp86 SharedBuffer* SharedBuffer::reset(size_t new_size) const in reset()
89 SharedBuffer* sb = alloc(new_size); in reset()
/frameworks/compile/mclinker/include/mcld/ADT/
DHashBase.tcc196 unsigned int new_size; in mayRehash() local
201 new_size = compute_bucket_count(m_NumOfBuckets); in mayRehash()
203 new_size = m_NumOfBuckets; in mayRehash()
207 doRehash(new_size); in mayRehash()
/frameworks/compile/mclinker/lib/Support/
DPath.cpp79 unsigned int new_size = old_size + pPath.native().size(); in append() local
81 m_PathName.resize(new_size); in append()