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()
97 unsigned copy));
379 local int updatewindow(strm, end, copy)
382 unsigned copy;
404 /* copy state->wsize or less output bytes into the circular window */
405 if (copy >= state->wsize) {
412 if (dist > copy) dist = copy;
413 zmemcpy(state->window + state->wnext, end - copy, dist);
414 copy -= dist;
415 if (copy) {
416 zmemcpy(state->window, end - copy, copy);
417 state->wnext = copy;
591 and there is no window currently, goto inf_leave will create one and copy
616 unsigned copy; /* number of stored or match bytes to copy */
617 unsigned char FAR *from; /* where to copy match bytes from */
620 unsigned len; /* length to copy for repeats, bits to drop */
735 copy = state->length;
736 if (copy > have) copy = have;
737 if (copy) {
742 len + copy > state->head->extra_max ?
743 state->head->extra_max - len : copy);
746 state->check = crc32(state->check, next, copy);
747 have -= copy;
748 next += copy;
749 state->length -= copy;
758 copy = 0;
760 len = (unsigned)(next[copy++]);
765 } while (len && copy < have);
767 state->check = crc32(state->check, next, copy);
768 have -= copy;
769 next += copy;
779 copy = 0;
781 len = (unsigned)(next[copy++]);
786 } while (len && copy < have);
788 state->check = crc32(state->check, next, copy);
789 have -= copy;
790 next += copy;
881 copy = state->length;
882 if (copy) {
883 if (copy > have) copy = have;
884 if (copy > left) copy = left;
885 if (copy == 0) goto inf_leave;
886 zmemcpy(put, next, copy);
887 have -= copy;
888 next += copy;
889 left -= copy;
890 put += copy;
891 state->length -= copy;
957 copy = 3 + BITS(2);
964 copy = 3 + BITS(3);
971 copy = 11 + BITS(7);
974 if (state->have + copy > state->nlen + state->ndist) {
979 while (copy--)
1125 copy = out - left;
1126 if (state->offset > copy) { /* copy from window */
1127 copy = state->offset - copy;
1128 if (copy > state->whave) {
1136 copy -= state->whave;
1137 if (copy > state->length) copy = state->length;
1138 if (copy > left) copy = left;
1139 left -= copy;
1140 state->length -= copy;
1143 } while (--copy);
1148 if (copy > state->wnext) {
1149 copy -= state->wnext;
1150 from = state->window + (state->wsize - copy);
1153 from = state->window + (state->wnext - copy);
1154 if (copy > state->length) copy = state->length;
1156 else { /* copy from output */
1158 copy = state->length;
1160 if (copy > left) copy = left;
1161 left -= copy;
1162 state->length -= copy;
1165 } while (--copy);
1279 /* copy dictionary */
1314 /* copy dictionary to window using updatewindow(), which will amend the
1443 struct inflate_state FAR *copy;
1454 copy = (struct inflate_state FAR *)
1456 if (copy == Z_NULL) return Z_MEM_ERROR;
1462 ZFREE(source, copy);
1467 /* copy state */
1469 zmemcpy((voidpf)copy, (voidpf)state, sizeof(struct inflate_state));
1472 copy->lencode = copy->codes + (state->lencode - state->codes);
1473 copy->distcode = copy->codes + (state->distcode - state->codes);
1475 copy->next = copy->codes + (state->next - state->codes);
1480 copy->window = window;
1481 dest->state = (struct internal_state FAR *)copy;