Lines Matching refs:check

58  * - Remove distance extra == 0 check in inflate_fast()--only helps for lengths
75 * - Simplified bad distance check in inflate_fast()
399 /* check function to use adler32() for zlib or crc32() for gzip */
401 # define UPDATE(check, buf, len) \
402 (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))
404 # define UPDATE(check, buf, len) adler32(check, buf, len)
407 /* check macros for header crc */
409 # define CRC2(check, word) \
413 check = crc32(check, hbuf, 2); \
416 # define CRC4(check, word) \
422 check = crc32(check, hbuf, 4); \
559 update the check value, and determine whether any progress has been made
606 if (state->mode == TYPE) state->mode = TYPEDO; /* skip check */
621 state->check = crc32(0L, Z_NULL, 0);
622 CRC2(state->check, hold);
630 if (!(state->wrap & 1) || /* check if zlib header allowed */
635 strm->msg = (char *)"incorrect header check";
653 strm->adler = state->check = adler32(0L, Z_NULL, 0);
673 if (state->flags & 0x0200) CRC2(state->check, hold);
680 if (state->flags & 0x0200) CRC4(state->check, hold);
689 if (state->flags & 0x0200) CRC2(state->check, hold);
698 if (state->flags & 0x0200) CRC2(state->check, hold);
717 state->check = crc32(state->check, next, copy);
738 state->check = crc32(state->check, next, copy);
759 state->check = crc32(state->check, next, copy);
770 if (hold != (state->check & 0xffff)) {
781 strm->adler = state->check = crc32(0L, Z_NULL, 0);
787 strm->adler = state->check = REVERSE(hold);
795 strm->adler = state->check = adler32(0L, Z_NULL, 0);
1108 strm->adler = state->check =
1109 UPDATE(state->check, put - out, out);
1115 REVERSE(hold)) != state->check) {
1116 strm->msg = (char *)"incorrect data check";
1121 Tracev((stderr, "inflate: check matches trailer\n"));
1129 strm->msg = (char *)"incorrect length check";
1152 Return from inflate(), updating the total counts and the check value.
1170 strm->adler = state->check =
1171 UPDATE(state->check, strm->next_out - out, out);
1201 /* check state */
1207 /* check for correct dictionary id */
1211 if (id != state->check)
1241 /* check state */
1294 /* check parameters */
1332 implementation to provide an additional safety check. PPP uses
1356 /* check input */