Lines Matching refs:count
106 static inline void ArrayBackwardCopy(T* d, const T* s, int32_t count) { in ArrayBackwardCopy() argument
107 d += count; in ArrayBackwardCopy()
108 s += count; in ArrayBackwardCopy()
109 for (int32_t i = 0; i < count; ++i) { in ArrayBackwardCopy()
119 static inline void ArrayForwardCopy(T* d, const T* s, int32_t count) { in ArrayForwardCopy() argument
120 for (int32_t i = 0; i < count; ++i) { in ArrayForwardCopy()
131 int32_t count) { in Memmove() argument
132 if (UNLIKELY(count == 0)) { in Memmove()
137 DCHECK_GT(count, 0); in Memmove()
140 DCHECK_LE(dst_pos, GetLength() - count); in Memmove()
142 DCHECK_LE(src_pos, src->GetLength() - count); in Memmove()
148 Memcpy(dst_pos, src, src_pos, count); in Memmove()
156 memmove(d, s, count); in Memmove()
158 const bool copy_forward = (dst_pos < src_pos) || (dst_pos - src_pos >= count); in Memmove()
163 ArrayForwardCopy<uint16_t>(d, s, count); in Memmove()
165 ArrayBackwardCopy<uint16_t>(d, s, count); in Memmove()
171 ArrayForwardCopy<uint32_t>(d, s, count); in Memmove()
173 ArrayBackwardCopy<uint32_t>(d, s, count); in Memmove()
180 ArrayForwardCopy<uint64_t>(d, s, count); in Memmove()
182 ArrayBackwardCopy<uint64_t>(d, s, count); in Memmove()
193 int32_t count) { in Memcpy() argument
194 if (UNLIKELY(count == 0)) { in Memcpy()
199 DCHECK_GT(count, 0); in Memcpy()
202 DCHECK_LE(dst_pos, GetLength() - count); in Memcpy()
204 DCHECK_LE(src_pos, src->GetLength() - count); in Memcpy()
211 memcpy(dst_raw, src_raw, count); in Memcpy()
215 ArrayForwardCopy<uint16_t>(d, s, count); in Memcpy()
219 ArrayForwardCopy<uint32_t>(d, s, count); in Memcpy()
224 ArrayForwardCopy<uint64_t>(d, s, count); in Memcpy()
277 for (size_t i = 0, count = GetLength(); i < count; ++i) { in Fixup() local
290 int32_t count, in Memcpy() argument
299 l_this->Memcpy(dst_pos, l_src, src_pos, count); in Memcpy()
305 i_this->Memcpy(dst_pos, i_src, src_pos, count); in Memcpy()