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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? deflate.c

?? Evc編的一個(gè)在wince5.0上運(yùn)行的flash播放器
?? C
?? 第 1 頁(yè) / 共 4 頁(yè)
字號(hào):
    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
}

/* ===========================================================================
 * 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.
 */
#ifndef FASTEST
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;
}

#else /* FASTEST */
/* ---------------------------------------------------------------------------
 * Optimized version for level == 1 only
 */
local uInt longest_match(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 len <= s->lookahead ? len : s->lookahead;
}
#endif /* FASTEST */
#endif /* ASMV */

#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

/* ===========================================================================
 * 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 (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
             * and lookahead == 1 (input done one 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.
         */
        } else 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
               at the expense of memory usage). We slide even when level == 0
               to keep the hash table consistent if we switch back to level > 0
               later. (Using level 0 permanently is not an optimal usage of
               zlib, so we don't care about this pathological case.)
             */
	    n = s->hash_size;
	    p = &s->head[n];
	    do {
		m = *--p;
		*p = (Pos)(m >= wsize ? m-wsize : NIL);
	    } while (--n);

	    n = wsize;
#ifndef FASTEST
	    p = &s->prev[n];
	    do {
		m = *--p;
		*p = (Pos)(m >= wsize ? m-wsize : NIL);
		/* If n is not on any hash chain, prev[n] is garbage but
		 * its value will never be used.
		 */
	    } while (--n);

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲在线中文字幕| 美腿丝袜亚洲综合| 日韩一区二区电影在线| 国产aⅴ综合色| 日韩电影在线观看网站| 亚洲视频一区在线观看| 欧美精品一区二| 69堂亚洲精品首页| 欧美在线看片a免费观看| 国产乱一区二区| 青青草视频一区| 亚洲福利一区二区| 亚洲黄色免费网站| 国产精品看片你懂得| 精品盗摄一区二区三区| 欧美一区二区三区人| 色女孩综合影院| 成人午夜av在线| 国产伦精一区二区三区| 蜜桃视频在线观看一区| 午夜免费久久看| 亚洲国产美国国产综合一区二区| 日本中文字幕一区二区视频| 亚洲欧美乱综合| 综合在线观看色| 久久蜜桃av一区精品变态类天堂| 成人免费看黄yyy456| 国产永久精品大片wwwapp| 久久精品国产精品青草| 天天操天天干天天综合网| 香蕉成人啪国产精品视频综合网| 欧美精品久久99久久在免费线 | 97久久精品人人做人人爽50路| 最新成人av在线| 国产精品久久久久影院色老大| 一本一道综合狠狠老| 99视频精品在线| 成人av网站免费观看| 成人国产免费视频| 国产v日产∨综合v精品视频| 经典一区二区三区| 国内国产精品久久| 国产一区 二区| 成人小视频免费观看| voyeur盗摄精品| 色婷婷久久综合| 欧美日韩黄视频| 日韩欧美国产一区二区在线播放 | 欧美性大战久久久| 欧美色网一区二区| 欧美一区二区三区四区在线观看| 国产精品99久久不卡二区| 国产高清在线观看免费不卡| 成人免费精品视频| 欧美性色aⅴ视频一区日韩精品| 免费人成精品欧美精品| 久久国产成人午夜av影院| 国产一区二区三区久久久| av在线综合网| 欧美日韩国产高清一区二区三区| 国产成人免费视频一区| 91在线播放网址| 欧美日韩一区二区三区免费看 | 亚洲欧洲日产国产综合网| 亚洲色图在线看| 日日摸夜夜添夜夜添亚洲女人| 国产精品毛片久久久久久| 亚洲精品欧美在线| 免费欧美高清视频| 成人妖精视频yjsp地址| 欧美视频在线不卡| 久久久久久久久久美女| 一区二区三区欧美日| 日韩av电影天堂| 国产精品18久久久久久vr| 99久久精品国产一区| 在线不卡一区二区| 国产精品卡一卡二| 奇米精品一区二区三区在线观看 | 91视视频在线直接观看在线看网页在线看| 视频一区视频二区中文| 韩国精品一区二区| av不卡免费在线观看| 日韩一级完整毛片| 日韩一区欧美小说| 久久精品久久精品| 欧美在线一二三四区| 欧美国产一区二区在线观看| 亚洲成人午夜影院| 成人国产一区二区三区精品| 337p亚洲精品色噜噜| 亚洲视频中文字幕| 国产成人一区在线| 欧美一区二区三区啪啪| 亚洲精品国产精华液| 国产伦精品一区二区三区视频青涩| 狠狠色丁香久久婷婷综合_中| 久久99这里只有精品| 欧美在线影院一区二区| 久久免费国产精品| 日本中文字幕不卡| 欧美视频在线一区| 亚洲男人都懂的| 懂色av一区二区三区免费观看| 成人性生交大合| 久久综合九色综合久久久精品综合 | 久久99精品久久久| 色香色香欲天天天影视综合网| 在线影视一区二区三区| 国产午夜精品一区二区三区视频| 国产日韩欧美亚洲| 日本vs亚洲vs韩国一区三区| 在线看不卡av| 自拍偷拍亚洲激情| 成人免费视频免费观看| 久久亚洲一级片| 精品一区二区在线看| 日韩欧美亚洲一区二区| 日韩国产精品久久| 欧美日韩在线免费视频| 一区二区日韩av| 91在线播放网址| 亚洲欧美色图小说| 99精品在线观看视频| 中文字幕色av一区二区三区| 成人免费高清视频在线观看| 国产亚洲成av人在线观看导航| 亚洲色图清纯唯美| 国产91清纯白嫩初高中在线观看| 91麻豆自制传媒国产之光| 中文字幕永久在线不卡| 99国产精品国产精品毛片| 国产欧美一区二区三区沐欲| 国产馆精品极品| 国产精品国产a级| 91丨porny丨国产| 一区二区高清免费观看影视大全 | 麻豆精品在线看| 欧美日韩精品欧美日韩精品一| 久久久久久一二三区| 国产精品资源在线| 欧美高清在线精品一区| 国产91富婆露脸刺激对白| 国产精品久久久久四虎| 色综合天天综合| 一级中文字幕一区二区| 欧美精品乱码久久久久久按摩| 国产精品每日更新在线播放网址| 亚洲高清在线精品| 欧美一区二区三区视频免费播放| 国产精品欧美一级免费| 97se亚洲国产综合自在线观| 亚洲自拍偷拍av| 欧美一级日韩不卡播放免费| 国产在线国偷精品产拍免费yy| 欧美亚洲一区二区在线| 石原莉奈一区二区三区在线观看| 成人黄色国产精品网站大全在线免费观看| 欧美在线免费播放| 日本怡春院一区二区| 欧美xxx久久| 成人一区二区三区视频| 亚洲三级在线免费| 5858s免费视频成人| 国产精品一区二区久激情瑜伽 | 91精品国产综合久久久久久漫画| 欧美韩国日本不卡| 欧美综合欧美视频| 久久99国产乱子伦精品免费| 久久精品视频一区二区三区| 99国产精品国产精品久久| 亚洲成av人影院| 中文一区在线播放| 欧美日韩极品在线观看一区| 国产在线看一区| 亚洲一区二区影院| 国产香蕉久久精品综合网| 色婷婷精品久久二区二区蜜臂av| 国产精品久久久久久亚洲毛片| 蜜桃视频一区二区| 日本一区二区三区国色天香| 欧美日韩一区成人| 国产成a人亚洲| 日韩不卡一区二区| 国产精品国产a| 精品日韩一区二区三区| 色婷婷综合在线| 国产suv精品一区二区6| 日韩高清一区在线| 亚洲欧洲精品一区二区精品久久久 | 午夜精品久久久久久久久| 国产清纯白嫩初高生在线观看91| 久久99精品一区二区三区三区| 欧美一区二区免费视频| 色综合久久久久综合99| 精品亚洲免费视频| 五月婷婷综合在线| 亚洲欧美一区二区不卡| 国产欧美va欧美不卡在线| 欧美一区二区三区免费视频 |