Lines Matching defs:check

34  * - Remove distance extra == 0 check in inflate_fast()--only helps for lengths
51 * - Simplified bad distance check in inflate_fast()
416 /* check function to use adler32() for zlib or crc32() for gzip */
418 # define UPDATE_CHECK(check, buf, len) \
419 (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))
421 # define UPDATE_CHECK(check, buf, len) adler32(check, buf, len)
424 /* check macros for header crc */
426 # define CRC2(check, word) \
430 check = crc32(check, hbuf, 2); \
433 # define CRC4(check, word) \
439 check = crc32(check, hbuf, 4); \
571 update the check value, and determine whether any progress has been made
615 if (state->mode == TYPE) state->mode = TYPEDO; /* skip check */
632 state->check = crc32(0L, Z_NULL, 0);
633 CRC2(state->check, hold);
640 if (!(state->wrap & 1) || /* check if zlib header allowed */
645 strm->msg = (char *)"incorrect header check";
666 strm->adler = state->check = adler32(0L, Z_NULL, 0);
687 CRC2(state->check, hold);
696 CRC4(state->check, hold);
707 CRC2(state->check, hold);
718 CRC2(state->check, hold);
739 state->check = crc32(state->check, next, copy);
761 state->check = crc32(state->check, next, copy);
783 state->check = crc32(state->check, next, copy);
795 if ((state->wrap & 4) && hold != (state->check & 0xffff)) {
806 strm->adler = state->check = crc32(0L, Z_NULL, 0);
812 strm->adler = state->check = ZSWAP32(hold);
821 strm->adler = state->check = adler32(0L, Z_NULL, 0);
990 /* check for end-of-block code (better have one) */
1190 strm->adler = state->check =
1191 UPDATE_CHECK(state->check, put - out, out);
1197 ZSWAP32(hold)) != state->check) {
1198 strm->msg = (char *)"incorrect data check";
1203 Tracev((stderr, "inflate: check matches trailer\n"));
1212 strm->msg = (char *)"incorrect length check";
1237 Return from inflate(), updating the total counts and the check value.
1256 strm->adler = state->check =
1257 UPDATE_CHECK(state->check, strm->next_out - out, out);
1282 /* check state */
1304 /* check state */
1310 /* check for correct dictionary identifier */
1314 if (dictid != state->check)
1333 /* check state */
1382 /* check parameters */
1413 state->wrap &= ~4; /* no point in computing a check value now */
1426 implementation to provide an additional safety check. PPP uses
1445 /* check input */
1498 int ZEXPORT inflateValidate(z_streamp strm, int check) {
1503 if (check && state->wrap)