Lines Matching +refs:check +refs:flags
412 # define UPDATE(check, buf, len) \ argument
413 (state->flags ? crc32(check, buf, len) : adler32(check, buf, len))
415 # define UPDATE(check, buf, len) adler32(check, buf, len) argument
420 # define CRC2(check, word) \ argument
424 check = crc32(check, hbuf, 2); \
427 # define CRC4(check, word) \ argument
433 check = crc32(check, hbuf, 4); \
632 state->check = crc32(0L, Z_NULL, 0);
633 CRC2(state->check, hold);
638 state->flags = 0; /* expect zlib header */
666 strm->adler = state->check = adler32(0L, Z_NULL, 0);
673 state->flags = (int)(hold);
674 if ((state->flags & 0xff) != Z_DEFLATED) {
679 if (state->flags & 0xe000) {
686 if (state->flags & 0x0200) CRC2(state->check, hold);
693 if (state->flags & 0x0200) CRC4(state->check, hold);
702 if (state->flags & 0x0200) CRC2(state->check, hold);
706 if (state->flags & 0x0400) {
711 if (state->flags & 0x0200) CRC2(state->check, hold);
718 if (state->flags & 0x0400) {
729 if (state->flags & 0x0200)
730 state->check = crc32(state->check, next, copy);
740 if (state->flags & 0x0800) {
750 if (state->flags & 0x0200)
751 state->check = crc32(state->check, next, copy);
761 if (state->flags & 0x1000) {
771 if (state->flags & 0x0200)
772 state->check = crc32(state->check, next, copy);
781 if (state->flags & 0x0200) {
783 if (hold != (state->check & 0xffff)) {
791 state->head->hcrc = (int)((state->flags >> 9) & 1);
794 strm->adler = state->check = crc32(0L, Z_NULL, 0);
800 strm->adler = state->check = REVERSE(hold);
808 strm->adler = state->check = adler32(0L, Z_NULL, 0);
1166 strm->adler = state->check =
1167 UPDATE(state->check, put - out, out);
1171 state->flags ? hold :
1173 REVERSE(hold)) != state->check) {
1184 if (state->wrap && state->flags) {
1228 strm->adler = state->check =
1229 UPDATE(state->check, strm->next_out - out, out);
1270 if (id != state->check)