Home
last modified time | relevance | path

Searched refs:new_max_size (Results 1 – 2 of 2) sorted by relevance

/external/regex-re2/util/
Dsparse_set.h91 void resize(int new_max_size) { in resize() argument
92 if (size_ > new_max_size) in resize()
93 size_ = new_max_size; in resize()
94 if (new_max_size > max_size_) { in resize()
95 int* a = new int[new_max_size]; in resize()
99 for (int i = max_size_; i < new_max_size; i++) in resize()
106 a = new int[new_max_size]; in resize()
110 for (int i = size_; i < new_max_size; i++) in resize()
117 max_size_ = new_max_size; in resize()
Dsparse_array.h269 void SparseArray<Value>::resize(int new_max_size) { in resize() argument
271 if (new_max_size > max_size_) { in resize()
272 int* a = new int[new_max_size]; in resize()
277 for (int i = max_size_; i < new_max_size; i++) in resize()
284 dense_.resize(new_max_size); in resize()
286 max_size_ = new_max_size; in resize()