Home
last modified time | relevance | path

Searched refs:size_ (Results 1 – 25 of 145) sorted by relevance

123456

/external/compiler-rt/lib/tsan/rtl/
Dtsan_mutexset.cc21 size_ = 0; in MutexSet()
27 for (uptr i = 0; i < size_; i++) { in Add()
35 if (size_ == kMaxSize) { in Add()
38 for (uptr i = 0; i < size_; i++) { in Add()
45 CHECK_EQ(size_, kMaxSize - 1); in Add()
48 descs_[size_].id = id; in Add()
49 descs_[size_].write = write; in Add()
50 descs_[size_].epoch = epoch; in Add()
51 descs_[size_].count = 1; in Add()
52 size_++; in Add()
[all …]
/external/srec/tools/thirdparty/OpenFst/fst/lib/
Dheap.h51 Heap(Compare comp) : comp_(comp), size_(0) { } in Heap()
54 Heap() : size_(0) { } in Heap()
60 if (size_ < (int)A_.size()) { in Insert()
61 A_[size_] = val; in Insert()
62 pos_[key_[size_]] = size_; in Insert()
65 pos_.push_back(size_); in Insert()
66 key_.push_back(size_); in Insert()
69 ++size_; in Insert()
70 return Insert(val, size_ - 1); in Insert()
91 Swap(0, size_-1); in Pop()
[all …]
/external/regex-re2/util/
Dsparse_set.h57 … : size_(0), max_size_(0), sparse_to_dense_(NULL), dense_(NULL), valgrind_(RunningOnValgrind()) {} in SparseSet()
72 size_ = 0; in SparseSet()
83 int size() const { return size_; } in size()
85 iterator end() { return dense_ + size_; } in end()
87 const_iterator end() const { return dense_ + size_; } in end()
92 if (size_ > new_max_size) in resize()
93 size_ = new_max_size; in resize()
108 memmove(a, dense_, size_*sizeof a[0]); in resize()
110 for (int i = size_; i < new_max_size; i++) in resize()
125 void clear() { size_ = 0; } in clear()
[all …]
Dsparse_array.h117 return size_; in size()
125 return dense_.begin() + size_; in end()
132 return dense_.begin() + size_; in end()
147 size_ = 0; in clear()
223 int size_; variable
234 : size_(0), max_size_(0), sparse_to_dense_(NULL), dense_(), valgrind_(RunningOnValgrind()) {} in SparseArray()
262 DCHECK_LT(i, size_); in iv()
287 if (size_ > max_size_) in resize()
288 size_ = max_size_; in resize()
301 return (uint)sparse_to_dense_[i] < (uint)size_ && in has_index()
[all …]
/external/openfst/src/include/fst/
Dheap.h57 Heap(Compare comp) : comp_(comp), size_(0) { } in Heap()
60 Heap() : size_(0) { } in Heap()
66 if (size_ < A_.size()) { in Insert()
67 A_[size_] = val; in Insert()
68 pos_[key_[size_]] = size_; in Insert()
71 pos_.push_back(size_); in Insert()
72 key_.push_back(size_); in Insert()
75 ++size_; in Insert()
76 return Insert(val, size_ - 1); in Insert()
98 Swap(0, size_-1); in Pop()
[all …]
/external/protobuf/src/google/protobuf/stubs/
Dsubstitute.h90 : text_(value), size_(strlen(text_)) {} in SubstituteArg()
92 : text_(value.data()), size_(value.size()) {} in SubstituteArg()
96 : text_(NULL), size_(-1) {} in SubstituteArg()
105 : text_(scratch_), size_(1) { scratch_[0] = value; } in SubstituteArg()
107 : text_(FastInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
109 : text_(FastUInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
111 : text_(FastInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
113 : text_(FastUInt32ToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
115 : text_(FastLongToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
117 : text_(FastULongToBuffer(value, scratch_)), size_(strlen(text_)) {} in SubstituteArg()
[all …]
/external/marisa-trie/lib/marisa/
Dvector.h47 return objs_ + size_; in end()
50 MARISA_DEBUG_IF(i > size_, MARISA_PARAM_ERROR);
54 MARISA_DEBUG_IF(size_ == 0, MARISA_STATE_ERROR); in front()
58 MARISA_DEBUG_IF(size_ == 0, MARISA_STATE_ERROR); in back()
59 return objs_[size_ - 1]; in back()
68 return buf_ + size_; in end()
72 MARISA_DEBUG_IF(i > size_, MARISA_PARAM_ERROR);
76 MARISA_DEBUG_IF(fixed_ || (size_ == 0), MARISA_STATE_ERROR); in front()
80 MARISA_DEBUG_IF(fixed_ || (size_ == 0), MARISA_STATE_ERROR); in back()
81 return buf_[size_ - 1]; in back()
[all …]
Dvector-inline.h8 : buf_(NULL), objs_(NULL), size_(0), capacity_(0), fixed_(false) {} in Vector()
13 for (std::size_t i = 0; i < size_; ++i) { in ~Vector()
42 temp.size_ = size; in map()
111 writer.write(size_); in write()
112 writer.write(objs_, size_); in write()
118 MARISA_THROW_IF(size_ == max_size(), MARISA_SIZE_ERROR); in push_back()
119 reserve(size_ + 1); in push_back()
120 new (&buf_[size_++]) T(x); in push_back()
125 MARISA_THROW_IF(fixed_ || (size_ == 0), MARISA_STATE_ERROR); in pop_back()
126 buf_[--size_].~T(); in pop_back()
[all …]
Dmapper.cc19 : ptr_(NULL), origin_(NULL), avail_(0), size_(0), in Mapper()
23 : ptr_(ptr), origin_(NULL), avail_(size), size_(0), in Mapper()
29 : ptr_(NULL), origin_(MAP_FAILED), avail_(0), size_(0), fd_(-1) {}
32 : ptr_(ptr), origin_(MAP_FAILED), avail_(size), size_(0), fd_(-1) {
54 ::munmap(origin_, size_); in ~Mapper()
76 temp.size_ = (std::size_t)file_size; in open()
104 temp.size_ = (std::size_t)file_size; in open()
109 temp.origin_ = ::mmap(NULL, temp.size_, PROT_READ, MAP_SHARED, temp.fd_, 0); in open()
126 Swap(&size_, &rhs->size_); in swap()
139 MARISA_THROW_IF((offset < 0) || ((unsigned long)offset > size_), in seek()
[all …]
Dbitvector.h42 MARISA_THROW_IF(size_ == max_size(), MARISA_SIZE_ERROR); in push_back()
43 if ((size_ % 32) == 0) { in push_back()
47 blocks_.back() |= 1U << (size_ % 32); in push_back()
49 ++size_; in push_back()
53 MARISA_DEBUG_IF(i >= size_, MARISA_PARAM_ERROR);
58 MARISA_DEBUG_IF(i > size_, MARISA_PARAM_ERROR); in rank0()
67 return size_; in size()
76 return blocks_.total_size() + sizeof(size_) + ranks_.total_size() in total_size()
85 UInt32 size_; variable
/external/marisa-trie/v0_1_5/lib/marisa_alpha/
Dvector.h47 return objs_ + size_; in end()
50 MARISA_ALPHA_DEBUG_IF(i > size_, MARISA_ALPHA_PARAM_ERROR);
54 MARISA_ALPHA_DEBUG_IF(size_ == 0, MARISA_ALPHA_STATE_ERROR); in front()
58 MARISA_ALPHA_DEBUG_IF(size_ == 0, MARISA_ALPHA_STATE_ERROR); in back()
59 return objs_[size_ - 1]; in back()
68 return buf_ + size_; in end()
72 MARISA_ALPHA_DEBUG_IF(i > size_, MARISA_ALPHA_PARAM_ERROR);
76 MARISA_ALPHA_DEBUG_IF(fixed_ || (size_ == 0), MARISA_ALPHA_STATE_ERROR); in front()
80 MARISA_ALPHA_DEBUG_IF(fixed_ || (size_ == 0), MARISA_ALPHA_STATE_ERROR); in back()
81 return buf_[size_ - 1]; in back()
[all …]
Dvector-inline.h8 : buf_(NULL), objs_(NULL), size_(0), capacity_(0), fixed_(false) {} in Vector()
13 for (std::size_t i = 0; i < size_; ++i) { in ~Vector()
42 temp.size_ = size; in map()
111 writer.write(size_); in write()
112 writer.write(objs_, size_); in write()
118 MARISA_ALPHA_THROW_IF(size_ == max_size(), MARISA_ALPHA_SIZE_ERROR); in push_back()
119 reserve(size_ + 1); in push_back()
120 new (&buf_[size_++]) T(x); in push_back()
125 MARISA_ALPHA_THROW_IF(fixed_ || (size_ == 0), MARISA_ALPHA_STATE_ERROR); in pop_back()
126 buf_[--size_].~T(); in pop_back()
[all …]
Dmapper.cc19 : ptr_(NULL), origin_(NULL), avail_(0), size_(0), in Mapper()
23 : ptr_(ptr), origin_(NULL), avail_(size), size_(0), in Mapper()
30 : ptr_(NULL), origin_(MAP_FAILED), avail_(0), size_(0), fd_(-1) {}
33 : ptr_(ptr), origin_(MAP_FAILED), avail_(size), size_(0), fd_(-1) {
56 ::munmap(origin_, size_); in ~Mapper()
79 temp.size_ = (std::size_t)file_size; in open()
108 temp.size_ = (std::size_t)file_size; in open()
113 temp.origin_ = ::mmap(NULL, temp.size_, PROT_READ, MAP_SHARED, temp.fd_, 0); in open()
130 Swap(&size_, &rhs->size_); in swap()
143 MARISA_ALPHA_THROW_IF((offset < 0) || ((unsigned long)offset > size_), in seek()
[all …]
Dbitvector.h42 MARISA_ALPHA_THROW_IF(size_ == max_size(), MARISA_ALPHA_SIZE_ERROR); in push_back()
43 if ((size_ % 32) == 0) { in push_back()
47 blocks_.back() |= 1U << (size_ % 32); in push_back()
49 ++size_; in push_back()
53 MARISA_ALPHA_DEBUG_IF(i >= size_, MARISA_ALPHA_PARAM_ERROR);
58 MARISA_ALPHA_DEBUG_IF(i > size_, MARISA_ALPHA_PARAM_ERROR); in rank0()
67 return size_; in size()
76 return blocks_.total_size() + sizeof(size_) + ranks_.total_size() in total_size()
85 UInt32 size_; variable
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_list.h31 size_ = 0; in clear()
34 bool empty() const { return size_ == 0; } in empty()
35 uptr size() const { return size_; } in size()
41 size_ = 1; in push_back()
46 size_++; in push_back()
54 size_ = 1; in push_front()
58 size_++; in push_front()
67 size_--; in pop_front()
82 size_ += l->size(); in append_front()
96 size_ += l->size(); in append_back()
[all …]
/external/chromium/testing/gtest/samples/
Dsample3-inl.h78 Queue() : head_(NULL), last_(NULL), size_(0) {} in Queue()
85 if (size_ > 0) { in Clear()
98 size_ = 0; in Clear()
103 size_t Size() const { return size_; } in Size()
120 if (size_ == 0) { in Enqueue()
122 size_ = 1; in Enqueue()
126 size_++; in Enqueue()
133 if (size_ == 0) { in Dequeue()
139 size_--; in Dequeue()
140 if (size_ == 0) { in Dequeue()
[all …]
/external/libvpx/libvpx/third_party/googletest/src/samples/
Dsample3-inl.h78 Queue() : head_(NULL), last_(NULL), size_(0) {} in Queue()
85 if (size_ > 0) { in Clear()
98 size_ = 0; in Clear()
103 size_t Size() const { return size_; } in Size()
120 if (size_ == 0) { in Enqueue()
122 size_ = 1; in Enqueue()
126 size_++; in Enqueue()
133 if (size_ == 0) { in Dequeue()
139 size_--; in Dequeue()
140 if (size_ == 0) { in Dequeue()
[all …]
/external/protobuf/gtest/samples/
Dsample3-inl.h78 Queue() : head_(NULL), last_(NULL), size_(0) {} in Queue()
85 if (size_ > 0) { in Clear()
98 size_ = 0; in Clear()
103 size_t Size() const { return size_; } in Size()
120 if (size_ == 0) { in Enqueue()
122 size_ = 1; in Enqueue()
126 size_++; in Enqueue()
133 if (size_ == 0) { in Dequeue()
139 size_--; in Dequeue()
140 if (size_ == 0) { in Dequeue()
[all …]
/external/gtest/samples/
Dsample3-inl.h78 Queue() : head_(NULL), last_(NULL), size_(0) {} in Queue()
85 if (size_ > 0) { in Clear()
98 size_ = 0; in Clear()
103 size_t Size() const { return size_; } in Size()
120 if (size_ == 0) { in Enqueue()
122 size_ = 1; in Enqueue()
126 size_++; in Enqueue()
133 if (size_ == 0) { in Dequeue()
139 size_--; in Dequeue()
140 if (size_ == 0) { in Dequeue()
[all …]
/external/icu4c/common/
Dbytestream.cpp31 size_(0), appended_(0), overflowed_(FALSE) { in CheckedArrayByteSink()
37 size_ = appended_ = 0; in Reset()
47 int32_t available = capacity_ - size_; in Append()
52 if (n > 0 && bytes != (outbuf_ + size_)) { in Append()
53 uprv_memcpy(outbuf_ + size_, bytes, n); in Append()
55 size_ += n; in Append()
67 int32_t available = capacity_ - size_; in GetAppendBuffer()
70 return outbuf_ + size_; in GetAppendBuffer()
/external/ceres-solver/include/ceres/internal/
Dfixed_array.h104 inline size_type size() const { return size_; } in size()
107 inline size_t memsize() const { return size_ * sizeof(T); } in memsize()
117 DCHECK_LT(i, size_);
125 DCHECK_LT(i, size_);
130 inline iterator end() { return &array_[size_].element; } in end()
133 inline const_iterator end() const { return &array_[size_].element; } in end()
155 size_type const size_; variable
167 : size_(n), in FixedArray()
175 for (size_t i = 0; i != size_; ++i) { in FixedArray()
186 for (size_t i = 0; i != size_; ++i) { in ~FixedArray()
/external/ceres-solver/internal/ceres/
Dparameter_block.h71 int Size() const { return size_; } in Size()
91 memcpy(x, state_, sizeof(*state_) * size_); in GetState()
134 ? size_ in LocalSize()
144 CHECK(new_parameterization->GlobalSize() == size_) in SetParameterization()
146 << "has size " << size_ << " while the parameterization has a global " in SetParameterization()
170 VectorRef(x_plus_delta, size_) = ConstVectorRef(x, size_) + in Plus()
171 ConstVectorRef(delta, size_); in Plus()
183 size_, in ToString()
195 size_ = size; in Init()
243 int size_; variable
/external/open-vcdiff/gtest/src/
Dgtest-internal-inl.h259 Vector() : elements_(NULL), capacity_(0), size_(0) {} in Vector()
267 for (int i = 0; i < size_; i++) { in Clear()
273 capacity_ = size_ = 0; in Clear()
278 int size() const { return size_; } in size()
284 void PushBack(const E& element) { Insert(element, size_); } in PushBack()
294 if (size_ == 0) in PopFront()
309 MoveElements(index, size_ - index, index + 1); in Insert()
311 size_++; in Insert()
317 GTEST_CHECK_(0 <= index && index < size_) in Erase()
319 << (size_ - 1) << "]."; in Erase()
[all …]
/external/protobuf/gtest/src/
Dgtest-internal-inl.h255 Vector() : elements_(NULL), capacity_(0), size_(0) {} in Vector()
263 for (int i = 0; i < size_; i++) { in Clear()
269 capacity_ = size_ = 0; in Clear()
274 int size() const { return size_; } in size()
280 void PushBack(const E& element) { Insert(element, size_); } in PushBack()
290 if (size_ == 0) in PopFront()
305 MoveElements(index, size_ - index, index + 1); in Insert()
307 size_++; in Insert()
313 GTEST_CHECK_(0 <= index && index < size_) in Erase()
315 << (size_ - 1) << "]."; in Erase()
[all …]
/external/chromium/webkit/glue/media/
Dsimple_data_source.cc41 size_(-1), in SimpleDataSource()
121 DCHECK_GE(size_, 0); in Read()
122 if (position >= size_) { in Read()
126 size_t copied = std::min(size, static_cast<size_t>(size_ - position)); in Read()
134 *size_out = size_; in GetSize()
174 size_ = response.expectedContentLength(); in didReceiveResponse()
219 if (size_ == -1) in didFinishLoading()
220 size_ = data_.length(); in didFinishLoading()
221 DCHECK(static_cast<size_t>(size_) == data_.length()); in didFinishLoading()
247 if (size_ == -1) in didFail()
[all …]

123456