亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? deflate.c

?? 這是一個三層的進銷存系統
?? C
?? 第 1 頁 / 共 4 頁
字號:
    ds->strm = dest;

    ds->window = (Bytef *) ZALLOC(dest, ds->w_size, 2*sizeof(Byte));
    ds->prev   = (Posf *)  ZALLOC(dest, ds->w_size, sizeof(Pos));
    ds->head   = (Posf *)  ZALLOC(dest, ds->hash_size, sizeof(Pos));
    overlay = (ushf *) ZALLOC(dest, ds->lit_bufsize, sizeof(ush)+2);
    ds->pending_buf = (uchf *) overlay;

    if (ds->window == Z_NULL || ds->prev == Z_NULL || ds->head == Z_NULL ||
        ds->pending_buf == Z_NULL) {
        deflateEnd (dest);
        return Z_MEM_ERROR;
    }
    /* following zmemcpy do not work for 16-bit MSDOS */
    zmemcpy(ds->window, ss->window, ds->w_size * 2 * sizeof(Byte));
    zmemcpy(ds->prev, ss->prev, ds->w_size * sizeof(Pos));
    zmemcpy(ds->head, ss->head, ds->hash_size * sizeof(Pos));
    zmemcpy(ds->pending_buf, ss->pending_buf, (uInt)ds->pending_buf_size);

    ds->pending_out = ds->pending_buf + (ss->pending_out - ss->pending_buf);
    ds->d_buf = overlay + ds->lit_bufsize/sizeof(ush);
    ds->l_buf = ds->pending_buf + (1+sizeof(ush))*ds->lit_bufsize;

    ds->l_desc.dyn_tree = ds->dyn_ltree;
    ds->d_desc.dyn_tree = ds->dyn_dtree;
    ds->bl_desc.dyn_tree = ds->bl_tree;

    return Z_OK;
#endif /* MAXSEG_64K */
}

/* ===========================================================================
 * Read a new buffer from the current input stream, update the adler32
 * and total number of bytes read.  All deflate() input goes through
 * this function so some applications may wish to modify it to avoid
 * allocating a large strm->next_in buffer and copying from it.
 * (See also flush_pending()).
 */
local int read_buf(strm, buf, size)
    z_streamp strm;
    Bytef *buf;
    unsigned size;
{
    unsigned len = strm->avail_in;

    if (len > size) len = size;
    if (len == 0) return 0;

    strm->avail_in  -= len;

    if (strm->state->wrap == 1) {
        strm->adler = adler32(strm->adler, strm->next_in, len);
    }
#ifdef GZIP
    else if (strm->state->wrap == 2) {
        strm->adler = crc32(strm->adler, strm->next_in, len);
    }
#endif
    zmemcpy(buf, strm->next_in, len);
    strm->next_in  += len;
    strm->total_in += len;

    return (int)len;
}

/* ===========================================================================
 * Initialize the "longest match" routines for a new zlib stream
 */
local void lm_init (s)
    deflate_state *s;
{
    s->window_size = (ulg)2L*s->w_size;

    CLEAR_HASH(s);

    /* Set the default configuration parameters:
     */
    s->max_lazy_match   = configuration_table[s->level].max_lazy;
    s->good_match       = configuration_table[s->level].good_length;
    s->nice_match       = configuration_table[s->level].nice_length;
    s->max_chain_length = configuration_table[s->level].max_chain;

    s->strstart = 0;
    s->block_start = 0L;
    s->lookahead = 0;
    s->match_length = s->prev_length = MIN_MATCH-1;
    s->match_available = 0;
    s->ins_h = 0;
#ifdef ASMV
    match_init(); /* initialize the asm code */
#endif
}

#ifndef FASTEST
/* ===========================================================================
 * Set match_start to the longest match starting at the given string and
 * return its length. Matches shorter or equal to prev_length are discarded,
 * in which case the result is equal to prev_length and match_start is
 * garbage.
 * IN assertions: cur_match is the head of the hash chain for the current
 *   string (strstart) and its distance is <= MAX_DIST, and prev_length >= 1
 * OUT assertion: the match length is not greater than s->lookahead.
 */
#ifndef ASMV
/* For 80x86 and 680x0, an optimized version will be provided in match.asm or
 * match.S. The code will be functionally equivalent.
 */
local uInt longest_match(s, cur_match)
    deflate_state *s;
    IPos cur_match;                             /* current match */
{
    unsigned chain_length = s->max_chain_length;/* max hash chain length */
    register Bytef *scan = s->window + s->strstart; /* current string */
    register Bytef *match;                       /* matched string */
    register int len;                           /* length of current match */
    int best_len = s->prev_length;              /* best match length so far */
    int nice_match = s->nice_match;             /* stop if match long enough */
    IPos limit = s->strstart > (IPos)MAX_DIST(s) ?
        s->strstart - (IPos)MAX_DIST(s) : NIL;
    /* Stop when cur_match becomes <= limit. To simplify the code,
     * we prevent matches with the string of window index 0.
     */
    Posf *prev = s->prev;
    uInt wmask = s->w_mask;

#ifdef UNALIGNED_OK
    /* Compare two bytes at a time. Note: this is not always beneficial.
     * Try with and without -DUNALIGNED_OK to check.
     */
    register Bytef *strend = s->window + s->strstart + MAX_MATCH - 1;
    register ush scan_start = *(ushf*)scan;
    register ush scan_end   = *(ushf*)(scan+best_len-1);
#else
    register Bytef *strend = s->window + s->strstart + MAX_MATCH;
    register Byte scan_end1  = scan[best_len-1];
    register Byte scan_end   = scan[best_len];
#endif

    /* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16.
     * It is easy to get rid of this optimization if necessary.
     */
    Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever");

    /* Do not waste too much time if we already have a good match: */
    if (s->prev_length >= s->good_match) {
        chain_length >>= 2;
    }
    /* Do not look for matches beyond the end of the input. This is necessary
     * to make deflate deterministic.
     */
    if ((uInt)nice_match > s->lookahead) nice_match = s->lookahead;

    Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, "need lookahead");

    do {
        Assert(cur_match < s->strstart, "no future");
        match = s->window + cur_match;

        /* Skip to next match if the match length cannot increase
         * or if the match length is less than 2:
         */
#if (defined(UNALIGNED_OK) && MAX_MATCH == 258)
        /* This code assumes sizeof(unsigned short) == 2. Do not use
         * UNALIGNED_OK if your compiler uses a different size.
         */
        if (*(ushf*)(match+best_len-1) != scan_end ||
            *(ushf*)match != scan_start) continue;

        /* It is not necessary to compare scan[2] and match[2] since they are
         * always equal when the other bytes match, given that the hash keys
         * are equal and that HASH_BITS >= 8. Compare 2 bytes at a time at
         * strstart+3, +5, ... up to strstart+257. We check for insufficient
         * lookahead only every 4th comparison; the 128th check will be made
         * at strstart+257. If MAX_MATCH-2 is not a multiple of 8, it is
         * necessary to put more guard bytes at the end of the window, or
         * to check more often for insufficient lookahead.
         */
        Assert(scan[2] == match[2], "scan[2]?");
        scan++, match++;
        do {
        } while (*(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
                 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
                 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
                 *(ushf*)(scan+=2) == *(ushf*)(match+=2) &&
                 scan < strend);
        /* The funny "do {}" generates better code on most compilers */

        /* Here, scan <= window+strstart+257 */
        Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");
        if (*scan == *match) scan++;

        len = (MAX_MATCH - 1) - (int)(strend-scan);
        scan = strend - (MAX_MATCH-1);

#else /* UNALIGNED_OK */

        if (match[best_len]   != scan_end  ||
            match[best_len-1] != scan_end1 ||
            *match            != *scan     ||
            *++match          != scan[1])      continue;

        /* The check at best_len-1 can be removed because it will be made
         * again later. (This heuristic is not always a win.)
         * It is not necessary to compare scan[2] and match[2] since they
         * are always equal when the other bytes match, given that
         * the hash keys are equal and that HASH_BITS >= 8.
         */
        scan += 2, match++;
        Assert(*scan == *match, "match[2]?");

        /* We check for insufficient lookahead only every 8th comparison;
         * the 256th check will be made at strstart+258.
         */
        do {
        } while (*++scan == *++match && *++scan == *++match &&
                 *++scan == *++match && *++scan == *++match &&
                 *++scan == *++match && *++scan == *++match &&
                 *++scan == *++match && *++scan == *++match &&
                 scan < strend);

        Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");

        len = MAX_MATCH - (int)(strend - scan);
        scan = strend - MAX_MATCH;

#endif /* UNALIGNED_OK */

        if (len > best_len) {
            s->match_start = cur_match;
            best_len = len;
            if (len >= nice_match) break;
#ifdef UNALIGNED_OK
            scan_end = *(ushf*)(scan+best_len-1);
#else
            scan_end1  = scan[best_len-1];
            scan_end   = scan[best_len];
#endif
        }
    } while ((cur_match = prev[cur_match & wmask]) > limit
             && --chain_length != 0);

    if ((uInt)best_len <= s->lookahead) return (uInt)best_len;
    return s->lookahead;
}
#endif /* ASMV */
#endif /* FASTEST */

/* ---------------------------------------------------------------------------
 * Optimized version for level == 1 or strategy == Z_RLE only
 */
local uInt longest_match_fast(s, cur_match)
    deflate_state *s;
    IPos cur_match;                             /* current match */
{
    register Bytef *scan = s->window + s->strstart; /* current string */
    register Bytef *match;                       /* matched string */
    register int len;                           /* length of current match */
    register Bytef *strend = s->window + s->strstart + MAX_MATCH;

    /* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16.
     * It is easy to get rid of this optimization if necessary.
     */
    Assert(s->hash_bits >= 8 && MAX_MATCH == 258, "Code too clever");

    Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, "need lookahead");

    Assert(cur_match < s->strstart, "no future");

    match = s->window + cur_match;

    /* Return failure if the match length is less than 2:
     */
    if (match[0] != scan[0] || match[1] != scan[1]) return MIN_MATCH-1;

    /* The check at best_len-1 can be removed because it will be made
     * again later. (This heuristic is not always a win.)
     * It is not necessary to compare scan[2] and match[2] since they
     * are always equal when the other bytes match, given that
     * the hash keys are equal and that HASH_BITS >= 8.
     */
    scan += 2, match += 2;
    Assert(*scan == *match, "match[2]?");

    /* We check for insufficient lookahead only every 8th comparison;
     * the 256th check will be made at strstart+258.
     */
    do {
    } while (*++scan == *++match && *++scan == *++match &&
             *++scan == *++match && *++scan == *++match &&
             *++scan == *++match && *++scan == *++match &&
             *++scan == *++match && *++scan == *++match &&
             scan < strend);

    Assert(scan <= s->window+(unsigned)(s->window_size-1), "wild scan");

    len = MAX_MATCH - (int)(strend - scan);

    if (len < MIN_MATCH) return MIN_MATCH - 1;

    s->match_start = cur_match;
    return (uInt)len <= s->lookahead ? (uInt)len : s->lookahead;
}

#ifdef DEBUG
/* ===========================================================================
 * Check that the match at match_start is indeed a match.
 */
local void check_match(s, start, match, length)
    deflate_state *s;
    IPos start, match;
    int length;
{
    /* check that the match is indeed a match */
    if (zmemcmp(s->window + match,
                s->window + start, length) != EQUAL) {
        fprintf(stderr, " start %u, match %u, length %d\n",
                start, match, length);
        do {
            fprintf(stderr, "%c%c", s->window[match++], s->window[start++]);
        } while (--length != 0);
        z_error("invalid match");
    }
    if (z_verbose > 1) {
        fprintf(stderr,"\\[%d,%d]", start-match, length);
        do { putc(s->window[start++], stderr); } while (--length != 0);
    }
}
#else
#  define check_match(s, start, match, length)
#endif /* DEBUG */

/* ===========================================================================
 * Fill the window when the lookahead becomes insufficient.
 * Updates strstart and lookahead.
 *
 * IN assertion: lookahead < MIN_LOOKAHEAD
 * OUT assertions: strstart <= window_size-MIN_LOOKAHEAD
 *    At least one byte has been read, or avail_in == 0; reads are
 *    performed for at least two bytes (required for the zip translate_eol
 *    option -- not supported here).
 */
local void fill_window(s)
    deflate_state *s;
{
    register unsigned n, m;
    register Posf *p;
    unsigned more;    /* Amount of free space at the end of the window. */
    uInt wsize = s->w_size;

    do {
        more = (unsigned)(s->window_size -(ulg)s->lookahead -(ulg)s->strstart);

        /* Deal with !@#$% 64K limit: */
        if (sizeof(int) <= 2) {
            if (more == 0 && s->strstart == 0 && s->lookahead == 0) {
                more = wsize;

            } else if (more == (unsigned)(-1)) {
                /* Very unlikely, but possible on 16 bit machine if
                 * strstart == 0 && lookahead == 1 (input done a byte at time)
                 */
                more--;
            }
        }

        /* If the window is almost full and there is insufficient lookahead,
         * move the upper half to the lower one to make room in the upper half.
         */
        if (s->strstart >= wsize+MAX_DIST(s)) {

            zmemcpy(s->window, s->window+wsize, (unsigned)wsize);
            s->match_start -= wsize;
            s->strstart    -= wsize; /* we now have strstart >= MAX_DIST */
            s->block_start -= (long) wsize;

            /* Slide the hash table (could be avoided with 32 bit values

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美影院精品一区| 激情久久五月天| 中文在线免费一区三区高中清不卡| 欧美日韩中文字幕一区| 色婷婷综合久色| 91视频免费播放| 高清国产一区二区三区| 久久99精品久久久久久| 麻豆国产91在线播放| 欧美aaaaa成人免费观看视频| 亚洲高清免费观看| 亚洲综合在线五月| 亚洲午夜av在线| 三级亚洲高清视频| 日韩av在线免费观看不卡| 青青草成人在线观看| 久久99精品久久只有精品| 国内精品久久久久影院色| 国产精品一二三四| eeuss鲁一区二区三区| 日本精品一级二级| 欧美乱妇23p| 精品国产91亚洲一区二区三区婷婷 | 日韩一区二区中文字幕| 精品少妇一区二区三区| 中文字幕精品三区| 一区二区三区四区在线| 五月天激情综合| 九一久久久久久| 97精品国产97久久久久久久久久久久| 成人性生交大片免费看中文| 色婷婷综合激情| 日韩精品一区二| 国产精品超碰97尤物18| 五月激情六月综合| 国产福利电影一区二区三区| 色狠狠桃花综合| 欧美电视剧免费观看| 亚洲图片你懂的| 日本少妇一区二区| aaa国产一区| 日韩精品在线网站| 亚洲欧美激情小说另类| 美国精品在线观看| 91美女在线视频| 欧美另类高清zo欧美| 国产精品女上位| 男女男精品视频网| 91麻豆自制传媒国产之光| 精品国内二区三区| 亚洲图片欧美色图| 国产一区二三区| 欧美精品1区2区3区| 中文字幕第一区| 蜜臀av在线播放一区二区三区| 成人天堂资源www在线| 欧美一级二级三级乱码| 综合久久久久久久| 国产suv精品一区二区883| 欧美精品99久久久**| 一区二区三区中文字幕电影| 粉嫩一区二区三区在线看| 91精品国产综合久久精品麻豆| 国产精品乱码妇女bbbb| 国产一区二区毛片| 欧美大白屁股肥臀xxxxxx| 亚洲成av人片| 欧美视频一区二| 日韩免费看的电影| 国内一区二区在线| 天天爽夜夜爽夜夜爽精品视频| 亚洲va国产天堂va久久en| 成人h动漫精品| 久久久99精品免费观看不卡| 精品一区二区av| 日韩视频国产视频| 日韩精品91亚洲二区在线观看| 欧美性xxxxxxxx| 亚洲一二三专区| 欧美日韩国产综合视频在线观看| 亚洲少妇中出一区| 99久久99久久精品免费看蜜桃| 国产精品妹子av| 99精品视频在线播放观看| 欧美国产精品劲爆| 99精品视频一区| 亚洲黄色片在线观看| 欧美午夜不卡在线观看免费| 一个色妞综合视频在线观看| 欧美少妇一区二区| 午夜精品一区二区三区免费视频 | 99久久99久久免费精品蜜臀| 国产精品久久毛片| 91高清视频免费看| 五月婷婷综合网| 精品免费国产二区三区| 国产最新精品免费| 国产精品久久久久久亚洲毛片| 99精品黄色片免费大全| 一区二区三区在线影院| 欧美一区二区在线免费观看| 激情综合五月天| 国产精品私房写真福利视频| 色婷婷综合久色| 日韩av不卡一区二区| 久久久久久久久久久久久夜| 99精品偷自拍| 精品中文字幕一区二区小辣椒| 国产色91在线| 欧美色视频一区| 精品一区二区三区视频| 国产精品人妖ts系列视频| 欧美最猛性xxxxx直播| 美日韩一区二区| 亚洲视频一区二区在线| 日韩一区二区三区四区| 99热精品国产| 美女在线一区二区| 亚洲欧美在线视频| 日韩精品一区在线观看| 色综合中文字幕| 国产真实乱对白精彩久久| 亚洲视频香蕉人妖| 久久亚洲精精品中文字幕早川悠里| 97久久精品人人做人人爽| 美女视频第一区二区三区免费观看网站| 久久久噜噜噜久久中文字幕色伊伊 | 91女厕偷拍女厕偷拍高清| 午夜精品久久一牛影视| 久久久av毛片精品| 在线免费不卡电影| 国产精品亚洲一区二区三区妖精| 一区二区三区日韩欧美精品| 精品国产sm最大网站免费看| 欧美最新大片在线看 | 91视频免费播放| 国产精品123| 麻豆国产精品官网| 亚洲大片在线观看| 亚洲人成影院在线观看| 久久久久久久久99精品| 欧美一区二区女人| 欧美日韩一区视频| 91麻豆免费观看| 99综合影院在线| 国产高清成人在线| 国内精品伊人久久久久av影院| 婷婷开心久久网| 亚洲综合视频网| 中文字幕一区二区三区不卡在线| 欧美精品一区二区在线观看| 欧美精品久久天天躁| 欧美在线视频全部完| 91在线视频观看| 不卡视频一二三| av动漫一区二区| 99re8在线精品视频免费播放| 成人sese在线| 成人av高清在线| 99国产精品久久| 91在线视频网址| 色视频成人在线观看免| 91蝌蚪porny九色| 91香蕉国产在线观看软件| 成人福利视频网站| 成人av在线资源网| 床上的激情91.| 豆国产96在线|亚洲| 国产精品18久久久久久久久| 懂色中文一区二区在线播放| 国产一区亚洲一区| 粉嫩在线一区二区三区视频| 99久久综合99久久综合网站| 色哟哟一区二区在线观看| 91福利精品视频| 在线视频国内自拍亚洲视频| 在线观看欧美精品| 欧美日本免费一区二区三区| 欧美sm美女调教| 日本一区二区三区高清不卡| 国产精品高潮呻吟久久| 亚洲一区二区三区在线看| 亚洲r级在线视频| 国产最新精品免费| 色婷婷av一区二区三区gif| 91精品在线一区二区| 久久精品一二三| 夜夜嗨av一区二区三区中文字幕 | 久久国产日韩欧美精品| 国产精品一区二区在线观看网站| 国产福利视频一区二区三区| 在线视频你懂得一区二区三区| 91精品国产入口在线| 中文字幕久久午夜不卡| 亚洲国产精品一区二区尤物区| 久久99久久99| 99久久免费视频.com| 日韩欧美在线网站| 国产精品日产欧美久久久久| 人禽交欧美网站|