• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/zlib-1.2.7/

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); \
585 update the check value, and determine whether any progress has been made
632 if (state->mode == TYPE) state->mode = TYPEDO; /* skip check */
647 state->check = crc32(0L, Z_NULL, 0);
648 CRC2(state->check, hold);
656 if (!(state->wrap & 1) || /* check if zlib header allowed */
661 strm->msg = (char *)"incorrect header check";
681 strm->adler = state->check = adler32(0L, Z_NULL, 0);
701 if (state->flags & 0x0200) CRC2(state->check, hold);
708 if (state->flags & 0x0200) CRC4(state->check, hold);
717 if (state->flags & 0x0200) CRC2(state->check, hold);
726 if (state->flags & 0x0200) CRC2(state->check, hold);
745 state->check = crc32(state->check, next, copy);
766 state->check = crc32(state->check, next, copy);
787 state->check = crc32(state->check, next, copy);
798 if (hold != (state->check & 0xffff)) {
809 strm->adler = state->check = crc32(0L, Z_NULL, 0);
815 strm->adler = state->check = ZSWAP32(hold);
823 strm->adler = state->check = adler32(0L, Z_NULL, 0);
986 /* check for end-of-block code (better have one) */
1180 strm->adler = state->check =
1181 UPDATE(state->check, put - out, out);
1187 ZSWAP32(hold)) != state->check) {
1188 strm->msg = (char *)"incorrect data check";
1193 Tracev((stderr, "inflate: check matches trailer\n"));
1201 strm->msg = (char *)"incorrect length check";
1224 Return from inflate(), updating the total counts and the check value.
1243 strm->adler = state->check =
1244 UPDATE(state->check, strm->next_out - out, out);
1278 /* check state */
1284 /* check for correct dictionary identifier */
1288 if (dictid != state->check)
1316 /* check state */
1369 /* check parameters */
1407 implementation to provide an additional safety check. PPP uses
1431 /* check input */