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

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()
375 /* check function to use adler32() for zlib or crc32() for gzip */
377 # define UPDATE(check, buf, len) \
378 (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))
380 # define UPDATE(check, buf, len) adler32(check, buf, len)
383 /* check macros for header crc */
385 # define CRC2(check, word) \
389 check = crc32(check, hbuf, 2); \
392 # define CRC4(check, word) \
398 check = crc32(check, hbuf, 4); \
535 update the check value, and determine whether any progress has been made
582 if (state->mode == TYPE) state->mode = TYPEDO; /* skip check */
597 state->check = crc32(0L, Z_NULL, 0);
598 CRC2(state->check, hold);
606 if (!(state->wrap & 1) || /* check if zlib header allowed */
611 strm->msg = (char *)"incorrect header check";
629 strm->adler = state->check = adler32(0L, Z_NULL, 0);
649 if (state->flags & 0x0200) CRC2(state->check, hold);
656 if (state->flags & 0x0200) CRC4(state->check, hold);
665 if (state->flags & 0x0200) CRC2(state->check, hold);
674 if (state->flags & 0x0200) CRC2(state->check, hold);
693 state->check = crc32(state->check, next, copy);
714 state->check = crc32(state->check, next, copy);
735 state->check = crc32(state->check, next, copy);
746 if (hold != (state->check & 0xffff)) {
757 strm->adler = state->check = crc32(0L, Z_NULL, 0);
763 strm->adler = state->check = REVERSE(hold);
771 strm->adler = state->check = adler32(0L, Z_NULL, 0);
1084 strm->adler = state->check =
1085 UPDATE(state->check, put - out, out);
1091 REVERSE(hold)) != state->check) {
1092 strm->msg = (char *)"incorrect data check";
1097 Tracev((stderr, "inflate: check matches trailer\n"));
1105 strm->msg = (char *)"incorrect length check";
1128 Return from inflate(), updating the total counts and the check value.
1146 strm->adler = state->check =
1147 UPDATE(state->check, strm->next_out - out, out);
1177 /* check state */
1183 /* check for correct dictionary id */
1187 if (id != state->check)
1217 /* check state */
1270 /* check parameters */
1308 implementation to provide an additional safety check. PPP uses
1332 /* check input */