Lines Matching refs:check

61  * - Remove distance extra == 0 check in inflate_fast()--only helps for lengths
78 * - Simplified bad distance check in inflate_fast()
404 /* check function to use adler32() for zlib or z_crc32() for gzip */
406 # define UPDATE(check, buf, len) \
407 (state->flags ? z_crc32(check, buf, len) : adler32(check, buf, len))
409 # define UPDATE(check, buf, len) adler32(check, buf, len)
412 /* check macros for header crc */
414 # define CRC2(check, word) \
418 check = z_crc32(check, hbuf, 2); \
421 # define CRC4(check, word) \
427 check = z_crc32(check, hbuf, 4); \
564 update the check value, and determine whether any progress has been made
611 if (state->mode == TYPE) state->mode = TYPEDO; /* skip check */
626 state->check = z_crc32(0L, Z_NULL, 0);
627 CRC2(state->check, hold);
635 if (!(state->wrap & 1) || /* check if zlib header allowed */
640 strm->msg = (char *)"incorrect header check";
658 strm->adler = state->check = adler32(0L, Z_NULL, 0);
678 if (state->flags & 0x0200) CRC2(state->check, hold);
685 if (state->flags & 0x0200) CRC4(state->check, hold);
694 if (state->flags & 0x0200) CRC2(state->check, hold);
703 if (state->flags & 0x0200) CRC2(state->check, hold);
722 state->check = z_crc32(state->check, next, copy);
743 state->check = z_crc32(state->check, next, copy);
764 state->check = z_crc32(state->check, next, copy);
775 if (hold != (state->check & 0xffff)) {
786 strm->adler = state->check = z_crc32(0L, Z_NULL, 0);
792 strm->adler = state->check = REVERSE(hold);
800 strm->adler = state->check = adler32(0L, Z_NULL, 0);
1113 strm->adler = state->check =
1114 UPDATE(state->check, put - out, out);
1120 REVERSE(hold)) != state->check) {
1121 strm->msg = (char *)"incorrect data check";
1126 Tracev((stderr, "inflate: check matches trailer\n"));
1134 strm->msg = (char *)"incorrect length check";
1157 Return from inflate(), updating the total counts and the check value.
1175 strm->adler = state->check =
1176 UPDATE(state->check, strm->next_out - out, out);
1206 /* check state */
1212 /* check for correct dictionary id */
1216 if (id != state->check)
1246 /* check state */
1299 /* check parameters */
1337 implementation to provide an additional safety check. PPP uses
1361 /* check input */