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

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

?? deflate.c

?? funambol windows mobile plugin source code, the source code is taken from the funambol site
?? C
?? 第 1 頁 / 共 4 頁
字號:
    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
#ifdef _WIN32_WCE
/* Windows CE is not support DEBUG version's zlib */
#  define check_match(s, start, match, length)
#else
/* ===========================================================================
 * 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);
    }
}
#endif
#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.

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产成人私人影院tom| 欧美日本一区二区| 国产精品婷婷午夜在线观看| 国产麻豆视频一区| 久久久91精品国产一区二区精品 | 欧美一区二区三区日韩| 天天av天天翘天天综合网| 欧美日韩中文一区| 免费人成黄页网站在线一区二区| 91精品午夜视频| 极品美女销魂一区二区三区| 久久精品视频免费| 99vv1com这只有精品| 亚洲免费av高清| 欧美一区二区三区不卡| 国内精品在线播放| 国产精品国产精品国产专区不片| av高清久久久| 视频精品一区二区| 欧美激情中文字幕| 欧美亚洲综合另类| 精品一区二区国语对白| 亚洲欧洲日韩av| 91精品国产综合久久精品图片| 久久国内精品视频| 中文字幕一区二区三区在线不卡 | 欧美日韩色综合| 精品午夜一区二区三区在线观看| 国产精品天干天干在观线| 在线观看视频一区二区| 国内不卡的二区三区中文字幕| 日韩欧美高清dvd碟片| 国产亚洲精品免费| 国产成人鲁色资源国产91色综| 自拍偷拍欧美精品| 亚洲精品自拍动漫在线| 欧美日韩国产免费一区二区| 亚洲区小说区图片区qvod| 亚洲欧洲在线观看av| 中文字幕乱码一区二区免费| 久久久久久久久97黄色工厂| 久久亚洲捆绑美女| 久久久亚洲午夜电影| 久久精品一区四区| 欧美国产精品劲爆| 国产精品久久久久永久免费观看| 国产欧美日韩三区| 国产精品毛片无遮挡高清| 国产精品狼人久久影院观看方式| 中文字幕第一区第二区| 日韩一区日韩二区| 亚洲国产中文字幕| 蜜桃在线一区二区三区| 狠狠色丁香久久婷婷综| 国产91精品欧美| 91理论电影在线观看| 欧美在线啊v一区| 7777精品伊人久久久大香线蕉的| 91精品婷婷国产综合久久性色| 欧美成人伊人久久综合网| 久久亚洲免费视频| 亚洲色图在线播放| 亚洲成av人片一区二区梦乃| 日韩av电影一区| 国产黄色精品网站| 在线观看免费亚洲| 日韩一级免费观看| 国产精品久久久久影院老司| 亚洲日本丝袜连裤袜办公室| 亚洲丰满少妇videoshd| 国内不卡的二区三区中文字幕 | 91在线porny国产在线看| 欧美性一二三区| 亚洲精品一区二区三区精华液 | 麻豆国产欧美一区二区三区| 国产福利一区二区三区| 色拍拍在线精品视频8848| 91麻豆精品国产91久久久久久久久| 久久蜜臀中文字幕| 一区二区三区欧美在线观看| 麻豆91精品视频| 99国产一区二区三精品乱码| 制服丝袜中文字幕一区| 国产视频一区二区在线观看| 亚洲最大成人网4388xx| 久久99精品久久久久| 色综合久久99| 精品国产髙清在线看国产毛片| 自拍偷拍亚洲欧美日韩| 久久成人久久爱| 一本大道久久a久久综合| 精品卡一卡二卡三卡四在线| 亚洲乱码国产乱码精品精可以看| 久久99九九99精品| 欧美日韩中文字幕一区| 国产精品视频免费看| 日本不卡视频一二三区| 91在线一区二区| 欧美精品一区二区三区高清aⅴ | 欧美美女一区二区| 日韩美女啊v在线免费观看| 六月丁香婷婷色狠狠久久| 91福利精品视频| 国产精品久久久久久户外露出| 日本强好片久久久久久aaa| 91亚洲精华国产精华精华液| 精品福利一二区| 亚洲一级不卡视频| 成人av资源站| 国产亚洲欧美激情| 美腿丝袜亚洲综合| 欧美日韩国产另类不卡| 亚洲欧美激情插 | 免费成人在线观看| 欧美色精品在线视频| 中文一区一区三区高中清不卡| 青青国产91久久久久久| 在线日韩一区二区| 亚洲你懂的在线视频| 成人高清免费在线播放| 欧美mv和日韩mv的网站| 亚洲电影激情视频网站| 色88888久久久久久影院按摩| 久久久精品tv| 九九精品视频在线看| 欧美日韩免费在线视频| 亚洲免费观看高清完整版在线观看| 国产成人精品免费网站| 日韩欧美一区中文| 亚洲精品视频在线| 91在线视频在线| 日本一二三不卡| 国产河南妇女毛片精品久久久| 欧美日韩国产片| 婷婷久久综合九色国产成人| 日本韩国欧美一区| **欧美大码日韩| av不卡一区二区三区| 中文字幕在线一区| 成人黄色大片在线观看| 国产日韩欧美综合一区| 国产在线精品一区二区| 欧美精品一区在线观看| 国产在线视频一区二区三区| 日韩视频一区二区在线观看| 日韩精品1区2区3区| 在线播放91灌醉迷j高跟美女| 亚洲国产日韩a在线播放性色| 欧美午夜视频网站| 午夜精品福利一区二区三区av| 欧美色手机在线观看| 香蕉av福利精品导航| 欧美电影一区二区三区| 午夜久久久影院| 日韩欧美亚洲一区二区| 经典三级视频一区| 久久蜜桃av一区精品变态类天堂| 国产一区二区调教| 国产精品美女久久久久高潮 | 欧美日韩综合在线免费观看| 亚洲自拍偷拍九九九| 在线成人免费观看| 激情综合色综合久久综合| www一区二区| 97精品国产露脸对白| 亚洲欧美视频在线观看视频| 一本久道中文字幕精品亚洲嫩| 亚洲美女视频在线观看| 欧美日韩国产另类一区| 精品一区二区免费视频| 日本一区二区三区国色天香| 成人激情文学综合网| 亚洲综合在线免费观看| 欧美疯狂性受xxxxx喷水图片| 久久99国产精品久久99| 国产午夜亚洲精品午夜鲁丝片| 9i在线看片成人免费| 婷婷综合久久一区二区三区| 欧美电影免费提供在线观看| 丁香婷婷深情五月亚洲| 午夜精品一区二区三区电影天堂| 久久一夜天堂av一区二区三区| 99久久久国产精品| 日韩国产欧美在线播放| 中文久久乱码一区二区| 欧美丰满美乳xxx高潮www| 国产成人av一区| 亚洲1区2区3区视频| 久久久夜色精品亚洲| 欧美三级韩国三级日本一级| 国产成人在线电影| 日韩影院免费视频| 中文字幕精品—区二区四季| 7777精品伊人久久久大香线蕉的| 国产精品一区久久久久| 亚洲高清不卡在线| 中文字幕亚洲一区二区av在线| 日韩一区二区免费高清| 99久久精品费精品国产一区二区| 蜜桃av噜噜一区|