Lines Matching refs:len
96 unsigned len) Z_DISABLE_MSAN {
97 const int bump = (--len % CHUNKCOPY_CHUNK_SIZE) + 1;
101 len /= CHUNKCOPY_CHUNK_SIZE;
102 while (len-- > 0) {
114 * copy would use (out + len), but it's normally the case that the end of the
121 unsigned len,
123 Assert(out + len <= limit, "chunk copy exceeds safety limit");
126 Assert((uintptr_t)out - (uintptr_t)from >= len,
128 Assert((uintptr_t)from - (uintptr_t)out >= len,
130 if (len & 8) {
135 if (len & 4) {
140 if (len & 2) {
145 if (len & 1) {
150 return chunkcopy_core(out, from, len);
166 unsigned FAR* len) Z_DISABLE_MSAN {
168 while (*dist < *len && *dist < CHUNKCOPY_CHUNK_SIZE) {
171 *len -= *dist;
279 unsigned len) {
281 const int bump = ((len - 1) % sizeof(v)) + 1;
288 len -= bump;
289 while (len > 0) {
292 len -= sizeof(v);
299 len -= bump;
300 if (len > 0) {
305 len -= sizeof(v);
306 } while (len > 0);
313 len -= bump;
314 if (len > 0) {
319 len -= sizeof(v);
320 } while (len > 0);
327 len -= bump;
328 if (len > 0) {
333 len -= sizeof(v);
334 } while (len > 0);
338 out = chunkunroll_relaxed(out, &period, &len);
339 return chunkcopy_core(out, out - period, len);
355 unsigned len) {
356 Assert((uintptr_t)out - (uintptr_t)from >= len,
358 Assert((uintptr_t)from - (uintptr_t)out >= len,
360 return chunkcopy_core(out, from, len);
372 * copy would use (out + len), but it's normally the case that the end of the
379 unsigned len,
381 Assert(out + len <= limit, "chunk copy exceeds safety limit");
382 Assert((uintptr_t)out - (uintptr_t)from >= len,
384 Assert((uintptr_t)from - (uintptr_t)out >= len,
387 return chunkcopy_core_safe(out, from, len, limit);
394 * Assumes that len > 0 on entry, and that it's safe to write at least
400 unsigned len) {
401 if (dist < len && dist < CHUNKCOPY_CHUNK_SIZE) {
402 return chunkset_core(out, dist, len);
404 return chunkcopy_core(out, out - dist, len);
412 * copy would use (out + len), but it's normally the case that the end of the
419 unsigned len,
421 Assert(out + len <= limit, "chunk copy exceeds safety limit");
424 while (len-- > 0) {
430 return chunkcopy_lapped_relaxed(out, dist, len);
436 unsigned len,
443 return chunkcopy_core_safe(out, out - dist, len, limit);
446 return chunkcopy_core_safe(out, out - dist, len, limit);
449 return chunkcopy_lapped_safe(out, dist, len, limit);