• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/minidlna/zlib-1.2.3/

Lines Matching refs:copy

20  * - Unroll direct copy to three copies per loop in inffast.c
37 * - Make MATCH copy in inflate() much faster for when inflate_fast() not used
46 * - Unroll last copy for window match in inflate_fast()
328 unsigned copy, dist;
347 /* copy state->wsize or less output bytes into the circular window */
348 copy = out - strm->avail_out;
349 if (copy >= state->wsize) {
356 if (dist > copy) dist = copy;
357 zmemcpy(state->window + state->write, strm->next_out - copy, dist);
358 copy -= dist;
359 if (copy) {
360 zmemcpy(state->window, strm->next_out - copy, copy);
361 state->write = copy;
540 and there is no window currently, goto inf_leave will create one and copy
565 unsigned copy; /* number of stored or match bytes to copy */
566 unsigned char FAR *from; /* where to copy match bytes from */
569 unsigned len; /* length to copy for repeats, bits to drop */
682 copy = state->length;
683 if (copy > have) copy = have;
684 if (copy) {
689 len + copy > state->head->extra_max ?
690 state->head->extra_max - len : copy);
693 state->check = crc32(state->check, next, copy);
694 have -= copy;
695 next += copy;
696 state->length -= copy;
705 copy = 0;
707 len = (unsigned)(next[copy++]);
712 } while (len && copy < have);
714 state->check = crc32(state->check, next, copy);
715 have -= copy;
716 next += copy;
726 copy = 0;
728 len = (unsigned)(next[copy++]);
733 } while (len && copy < have);
735 state->check = crc32(state->check, next, copy);
736 have -= copy;
737 next += copy;
821 copy = state->length;
822 if (copy) {
823 if (copy > have) copy = have;
824 if (copy > left) copy = left;
825 if (copy == 0) goto inf_leave;
826 zmemcpy(put, next, copy);
827 have -= copy;
828 next += copy;
829 left -= copy;
830 put += copy;
831 state->length -= copy;
898 copy = 3 + BITS(2);
905 copy = 3 + BITS(3);
912 copy = 11 + BITS(7);
915 if (state->have + copy > state->nlen + state->ndist) {
920 while (copy--)
1048 copy = out - left;
1049 if (state->offset > copy) { /* copy from window */
1050 copy = state->offset - copy;
1051 if (copy > state->write) {
1052 copy -= state->write;
1053 from = state->window + (state->wsize - copy);
1056 from = state->window + (state->write - copy);
1057 if (copy > state->length) copy = state->length;
1059 else { /* copy from output */
1061 copy = state->length;
1063 if (copy > left) copy = left;
1064 left -= copy;
1065 state->length -= copy;
1068 } while (--copy);
1191 /* copy dictionary to window */
1328 struct inflate_state FAR *copy;
1339 copy = (struct inflate_state FAR *)
1341 if (copy == Z_NULL) return Z_MEM_ERROR;
1347 ZFREE(source, copy);
1352 /* copy state */
1354 zmemcpy(copy, state, sizeof(struct inflate_state));
1357 copy->lencode = copy->codes + (state->lencode - state->codes);
1358 copy->distcode = copy->codes + (state->distcode - state->codes);
1360 copy->next = copy->codes + (state->next - state->codes);
1365 copy->window = window;
1366 dest->state = (struct internal_state FAR *)copy;