Lines Matching refs:count

222 static inline void ArrayBackwardCopy(T* d, const T* s, int32_t count) {  in ArrayBackwardCopy()  argument
223 d += count; in ArrayBackwardCopy()
224 s += count; in ArrayBackwardCopy()
225 for (int32_t i = 0; i < count; ++i) { in ArrayBackwardCopy()
235 static inline void ArrayForwardCopy(T* d, const T* s, int32_t count) { in ArrayForwardCopy() argument
236 for (int32_t i = 0; i < count; ++i) { in ArrayForwardCopy()
245 int32_t count) { in Memmove() argument
246 if (UNLIKELY(count == 0)) { in Memmove()
251 DCHECK_GT(count, 0); in Memmove()
254 DCHECK_LE(dst_pos, GetLength() - count); in Memmove()
256 DCHECK_LE(src_pos, src->GetLength() - count); in Memmove()
262 Memcpy(dst_pos, src, src_pos, count); in Memmove()
270 memmove(d, s, count); in Memmove()
272 const bool copy_forward = (dst_pos < src_pos) || (dst_pos - src_pos >= count); in Memmove()
277 ArrayForwardCopy<uint16_t>(d, s, count); in Memmove()
279 ArrayBackwardCopy<uint16_t>(d, s, count); in Memmove()
285 ArrayForwardCopy<uint32_t>(d, s, count); in Memmove()
287 ArrayBackwardCopy<uint32_t>(d, s, count); in Memmove()
294 ArrayForwardCopy<uint64_t>(d, s, count); in Memmove()
296 ArrayBackwardCopy<uint64_t>(d, s, count); in Memmove()
305 int32_t count) { in Memcpy() argument
306 if (UNLIKELY(count == 0)) { in Memcpy()
311 DCHECK_GT(count, 0); in Memcpy()
314 DCHECK_LE(dst_pos, GetLength() - count); in Memcpy()
316 DCHECK_LE(src_pos, src->GetLength() - count); in Memcpy()
323 memcpy(dst_raw, src_raw, count); in Memcpy()
327 ArrayForwardCopy<uint16_t>(d, s, count); in Memcpy()
331 ArrayForwardCopy<uint32_t>(d, s, count); in Memcpy()
336 ArrayForwardCopy<uint64_t>(d, s, count); in Memcpy()