Lines Matching refs:check
34 * - Remove distance extra == 0 check in inflate_fast()--only helps for lengths
51 * - Simplified bad distance check in inflate_fast()
430 /* check function to use adler32() for zlib or crc32() for gzip */
432 # define UPDATE(check, buf, len) \
433 (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))
435 # define UPDATE(check, buf, len) adler32(check, buf, len)
438 /* check macros for header crc */
440 # define CRC2(check, word) \
444 check = crc32(check, hbuf, 2); \
447 # define CRC4(check, word) \
453 check = crc32(check, hbuf, 4); \
590 update the check value, and determine whether any progress has been made
637 if (state->mode == TYPE) state->mode = TYPEDO; /* skip check */
652 state->check = crc32(0L, Z_NULL, 0);
653 CRC2(state->check, hold);
661 if (!(state->wrap & 1) || /* check if zlib header allowed */
666 strm->msg = (char *)"incorrect header check";
686 strm->adler = state->check = adler32(0L, Z_NULL, 0);
706 if (state->flags & 0x0200) CRC2(state->check, hold);
713 if (state->flags & 0x0200) CRC4(state->check, hold);
722 if (state->flags & 0x0200) CRC2(state->check, hold);
731 if (state->flags & 0x0200) CRC2(state->check, hold);
750 state->check = crc32(state->check, next, copy);
771 state->check = crc32(state->check, next, copy);
792 state->check = crc32(state->check, next, copy);
803 if (hold != (state->check & 0xffff)) {
814 strm->adler = state->check = crc32(0L, Z_NULL, 0);
820 strm->adler = state->check = REVERSE(hold);
828 strm->adler = state->check = adler32(0L, Z_NULL, 0);
991 /* check for end-of-block code (better have one) */
1185 strm->adler = state->check =
1186 UPDATE(state->check, put - out, out);
1192 REVERSE(hold)) != state->check) {
1193 strm->msg = (char *)"incorrect data check";
1198 Tracev((stderr, "inflate: check matches trailer\n"));
1206 strm->msg = (char *)"incorrect length check";
1229 Return from inflate(), updating the total counts and the check value.
1248 strm->adler = state->check =
1249 UPDATE(state->check, strm->next_out - out, out);
1283 /* check state */
1289 /* check for correct dictionary id */
1293 if (id != state->check)
1321 /* check state */
1374 /* check parameters */
1412 implementation to provide an additional safety check. PPP uses
1436 /* check input */