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

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

?? match.s

?? funambol windows mobile plugin source code, the source code is taken from the funambol site
?? S
字號(hào):
/* match.s -- Pentium-Pro-optimized version of longest_match()
 * Written for zlib 1.1.2
 * Copyright (C) 1998 Brian Raiter <breadbox@muppetlabs.com>
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License.
 */

#ifndef NO_UNDERLINE
#define	match_init	_match_init
#define	longest_match	_longest_match
#endif

#define	MAX_MATCH	(258)
#define	MIN_MATCH	(3)
#define	MIN_LOOKAHEAD	(MAX_MATCH + MIN_MATCH + 1)
#define	MAX_MATCH_8	((MAX_MATCH + 7) & ~7)

/* stack frame offsets */

#define	chainlenwmask		0	/* high word: current chain len	*/
					/* low word: s->wmask		*/
#define	window			4	/* local copy of s->window	*/
#define	windowbestlen		8	/* s->window + bestlen		*/
#define	scanstart		16	/* first two bytes of string	*/
#define	scanend			12	/* last two bytes of string	*/
#define	scanalign		20	/* dword-misalignment of string	*/
#define	nicematch		24	/* a good enough match size	*/
#define	bestlen			28	/* size of best match so far	*/
#define	scan			32	/* ptr to string wanting match	*/

#define	LocalVarsSize		(36)
/*	saved ebx		36 */
/*	saved edi		40 */
/*	saved esi		44 */
/*	saved ebp		48 */
/*	return address		52 */
#define	deflatestate		56	/* the function arguments	*/
#define	curmatch		60

/* Offsets for fields in the deflate_state structure. These numbers
 * are calculated from the definition of deflate_state, with the
 * assumption that the compiler will dword-align the fields. (Thus,
 * changing the definition of deflate_state could easily cause this
 * program to crash horribly, without so much as a warning at
 * compile time. Sigh.)
 */
#define	dsWSize			36
#define	dsWMask			44
#define	dsWindow		48
#define	dsPrev			56
#define	dsMatchLen		88
#define	dsPrevMatch		92
#define	dsStrStart		100
#define	dsMatchStart		104
#define	dsLookahead		108
#define	dsPrevLen		112
#define	dsMaxChainLen		116
#define	dsGoodMatch		132
#define	dsNiceMatch		136


.file "match.S"

.globl	match_init, longest_match

.text

/* uInt longest_match(deflate_state *deflatestate, IPos curmatch) */

longest_match:

/* Save registers that the compiler may be using, and adjust %esp to	*/
/* make room for our stack frame.					*/

		pushl	%ebp
		pushl	%edi
		pushl	%esi
		pushl	%ebx
		subl	$LocalVarsSize, %esp

/* Retrieve the function arguments. %ecx will hold cur_match		*/
/* throughout the entire function. %edx will hold the pointer to the	*/
/* deflate_state structure during the function's setup (before		*/
/* entering the main loop).						*/

		movl	deflatestate(%esp), %edx
		movl	curmatch(%esp), %ecx

/* uInt wmask = s->w_mask;						*/
/* unsigned chain_length = s->max_chain_length;				*/
/* if (s->prev_length >= s->good_match) {				*/
/*     chain_length >>= 2;						*/
/* }									*/

		movl	dsPrevLen(%edx), %eax
		movl	dsGoodMatch(%edx), %ebx
		cmpl	%ebx, %eax
		movl	dsWMask(%edx), %eax
		movl	dsMaxChainLen(%edx), %ebx
		jl	LastMatchGood
		shrl	$2, %ebx
LastMatchGood:

/* chainlen is decremented once beforehand so that the function can	*/
/* use the sign flag instead of the zero flag for the exit test.	*/
/* It is then shifted into the high word, to make room for the wmask	*/
/* value, which it will always accompany.				*/

		decl	%ebx
		shll	$16, %ebx
		orl	%eax, %ebx
		movl	%ebx, chainlenwmask(%esp)

/* if ((uInt)nice_match > s->lookahead) nice_match = s->lookahead;	*/

		movl	dsNiceMatch(%edx), %eax
		movl	dsLookahead(%edx), %ebx
		cmpl	%eax, %ebx
		jl	LookaheadLess
		movl	%eax, %ebx
LookaheadLess:	movl	%ebx, nicematch(%esp)

/* register Bytef *scan = s->window + s->strstart;			*/

		movl	dsWindow(%edx), %esi
		movl	%esi, window(%esp)
		movl	dsStrStart(%edx), %ebp
		lea	(%esi,%ebp), %edi
		movl	%edi, scan(%esp)

/* Determine how many bytes the scan ptr is off from being		*/
/* dword-aligned.							*/

		movl	%edi, %eax
		negl	%eax
		andl	$3, %eax
		movl	%eax, scanalign(%esp)

/* IPos limit = s->strstart > (IPos)MAX_DIST(s) ?			*/
/*     s->strstart - (IPos)MAX_DIST(s) : NIL;				*/

		movl	dsWSize(%edx), %eax
		subl	$MIN_LOOKAHEAD, %eax
		subl	%eax, %ebp
		jg	LimitPositive
		xorl	%ebp, %ebp
LimitPositive:

/* int best_len = s->prev_length;					*/

		movl	dsPrevLen(%edx), %eax
		movl	%eax, bestlen(%esp)

/* Store the sum of s->window + best_len in %esi locally, and in %esi.	*/

		addl	%eax, %esi
		movl	%esi, windowbestlen(%esp)

/* register ush scan_start = *(ushf*)scan;				*/
/* register ush scan_end   = *(ushf*)(scan+best_len-1);			*/
/* Posf *prev = s->prev;						*/

		movzwl	(%edi), %ebx
		movl	%ebx, scanstart(%esp)
		movzwl	-1(%edi,%eax), %ebx
		movl	%ebx, scanend(%esp)
		movl	dsPrev(%edx), %edi

/* Jump into the main loop.						*/

		movl	chainlenwmask(%esp), %edx
		jmp	LoopEntry

.balign 16

/* do {
 *     match = s->window + cur_match;
 *     if (*(ushf*)(match+best_len-1) != scan_end ||
 *         *(ushf*)match != scan_start) continue;
 *     [...]
 * } while ((cur_match = prev[cur_match & wmask]) > limit
 *          && --chain_length != 0);
 *
 * Here is the inner loop of the function. The function will spend the
 * majority of its time in this loop, and majority of that time will
 * be spent in the first ten instructions.
 *
 * Within this loop:
 * %ebx = scanend
 * %ecx = curmatch
 * %edx = chainlenwmask - i.e., ((chainlen << 16) | wmask)
 * %esi = windowbestlen - i.e., (window + bestlen)
 * %edi = prev
 * %ebp = limit
 */
LookupLoop:
		andl	%edx, %ecx
		movzwl	(%edi,%ecx,2), %ecx
		cmpl	%ebp, %ecx
		jbe	LeaveNow
		subl	$0x00010000, %edx
		js	LeaveNow
LoopEntry:	movzwl	-1(%esi,%ecx), %eax
		cmpl	%ebx, %eax
		jnz	LookupLoop
		movl	window(%esp), %eax
		movzwl	(%eax,%ecx), %eax
		cmpl	scanstart(%esp), %eax
		jnz	LookupLoop

/* Store the current value of chainlen.					*/

		movl	%edx, chainlenwmask(%esp)

/* Point %edi to the string under scrutiny, and %esi to the string we	*/
/* are hoping to match it up with. In actuality, %esi and %edi are	*/
/* both pointed (MAX_MATCH_8 - scanalign) bytes ahead, and %edx is	*/
/* initialized to -(MAX_MATCH_8 - scanalign).				*/

		movl	window(%esp), %esi
		movl	scan(%esp), %edi
		addl	%ecx, %esi
		movl	scanalign(%esp), %eax
		movl	$(-MAX_MATCH_8), %edx
		lea	MAX_MATCH_8(%edi,%eax), %edi
		lea	MAX_MATCH_8(%esi,%eax), %esi

/* Test the strings for equality, 8 bytes at a time. At the end,
 * adjust %edx so that it is offset to the exact byte that mismatched.
 *
 * We already know at this point that the first three bytes of the
 * strings match each other, and they can be safely passed over before
 * starting the compare loop. So what this code does is skip over 0-3
 * bytes, as much as necessary in order to dword-align the %edi
 * pointer. (%esi will still be misaligned three times out of four.)
 *
 * It should be confessed that this loop usually does not represent
 * much of the total running time. Replacing it with a more
 * straightforward "rep cmpsb" would not drastically degrade
 * performance.
 */
LoopCmps:
		movl	(%esi,%edx), %eax
		xorl	(%edi,%edx), %eax
		jnz	LeaveLoopCmps
		movl	4(%esi,%edx), %eax
		xorl	4(%edi,%edx), %eax
		jnz	LeaveLoopCmps4
		addl	$8, %edx
		jnz	LoopCmps
		jmp	LenMaximum
LeaveLoopCmps4:	addl	$4, %edx
LeaveLoopCmps:	testl	$0x0000FFFF, %eax
		jnz	LenLower
		addl	$2, %edx
		shrl	$16, %eax
LenLower:	subb	$1, %al
		adcl	$0, %edx

/* Calculate the length of the match. If it is longer than MAX_MATCH,	*/
/* then automatically accept it as the best possible match and leave.	*/

		lea	(%edi,%edx), %eax
		movl	scan(%esp), %edi
		subl	%edi, %eax
		cmpl	$MAX_MATCH, %eax
		jge	LenMaximum

/* If the length of the match is not longer than the best match we	*/
/* have so far, then forget it and return to the lookup loop.		*/

		movl	deflatestate(%esp), %edx
		movl	bestlen(%esp), %ebx
		cmpl	%ebx, %eax
		jg	LongerMatch
		movl	windowbestlen(%esp), %esi
		movl	dsPrev(%edx), %edi
		movl	scanend(%esp), %ebx
		movl	chainlenwmask(%esp), %edx
		jmp	LookupLoop

/*         s->match_start = cur_match;					*/
/*         best_len = len;						*/
/*         if (len >= nice_match) break;				*/
/*         scan_end = *(ushf*)(scan+best_len-1);			*/

LongerMatch:	movl	nicematch(%esp), %ebx
		movl	%eax, bestlen(%esp)
		movl	%ecx, dsMatchStart(%edx)
		cmpl	%ebx, %eax
		jge	LeaveNow
		movl	window(%esp), %esi
		addl	%eax, %esi
		movl	%esi, windowbestlen(%esp)
		movzwl	-1(%edi,%eax), %ebx
		movl	dsPrev(%edx), %edi
		movl	%ebx, scanend(%esp)
		movl	chainlenwmask(%esp), %edx
		jmp	LookupLoop

/* Accept the current string, with the maximum possible length.		*/

LenMaximum:	movl	deflatestate(%esp), %edx
		movl	$MAX_MATCH, bestlen(%esp)
		movl	%ecx, dsMatchStart(%edx)

/* if ((uInt)best_len <= s->lookahead) return (uInt)best_len;		*/
/* return s->lookahead;							*/

LeaveNow:
		movl	deflatestate(%esp), %edx
		movl	bestlen(%esp), %ebx
		movl	dsLookahead(%edx), %eax
		cmpl	%eax, %ebx
		jg	LookaheadRet
		movl	%ebx, %eax
LookaheadRet:

/* Restore the stack and return from whence we came.			*/

		addl	$LocalVarsSize, %esp
		popl	%ebx
		popl	%esi
		popl	%edi
		popl	%ebp
match_init:	ret

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色婷婷亚洲综合| 黄页网站大全一区二区| 欧美电影在哪看比较好| 精品一区中文字幕| 欧美国产精品一区二区三区| 在线免费一区三区| 国产久卡久卡久卡久卡视频精品| 一区二区三区蜜桃网| 欧美大片拔萝卜| 欧美日韩一区二区三区四区五区 | 亚洲香蕉伊在人在线观| 精品国产伦一区二区三区观看方式| 91小视频免费看| 国产一区二区不卡在线| 日韩精品色哟哟| 亚洲美女屁股眼交| 日韩毛片精品高清免费| 欧美激情自拍偷拍| 国产欧美中文在线| 久久人人97超碰com| 国产亚洲精品bt天堂精选| 国v精品久久久网| 丝袜美腿亚洲一区| 亚洲va国产va欧美va观看| 最新国产の精品合集bt伙计| 国产精品美女久久久久久久久| 精品美女一区二区| 久久亚洲一级片| 日本一区二区三区四区| 国产亚洲精久久久久久| 国产日韩av一区二区| 国产欧美精品一区二区三区四区 | 精品黑人一区二区三区久久| 欧美美女直播网站| 在线国产电影不卡| 91免费视频网| 欧美一区二区美女| 久久久久久久网| 亚洲精品视频观看| 蜜臀av一区二区在线免费观看| 免费三级欧美电影| 高清国产一区二区| 欧美午夜精品一区二区蜜桃| 欧美一级xxx| 蜜桃视频一区二区三区| 成人av集中营| 日韩视频一区二区| 最新中文字幕一区二区三区| 丝袜美腿高跟呻吟高潮一区| 国产一区999| 欧美日韩五月天| 亚洲欧美在线观看| 久久不见久久见免费视频7| av电影天堂一区二区在线| 91精品久久久久久久99蜜桃| 日本一二三四高清不卡| 亚瑟在线精品视频| 亚洲妇女屁股眼交7| 免费三级欧美电影| 欧美视频一区在线| 国产精品女人毛片| 色偷偷一区二区三区| 精品伦理精品一区| 日韩制服丝袜av| 欧美性色aⅴ视频一区日韩精品| www激情久久| 久久99精品久久久久久国产越南 | 亚洲国产精品精华液ab| 国模无码大尺度一区二区三区| 欧美三级中文字| 亚洲激情av在线| 在线日韩av片| 亚洲欧美中日韩| 色综合久久综合网欧美综合网| 国产欧美日韩另类视频免费观看 | 91麻豆免费视频| 综合激情成人伊人| eeuss影院一区二区三区| 久久精品夜色噜噜亚洲aⅴ| 国产剧情一区二区| 国产精品午夜春色av| 99久久久国产精品| 亚洲乱码中文字幕| 欧美日韩三级在线| 麻豆免费看一区二区三区| 日韩欧美一级二级三级久久久| 亚洲大尺度视频在线观看| 911精品国产一区二区在线| 日本一道高清亚洲日美韩| 精品国产三级电影在线观看| 国产一区二区免费在线| 国产蜜臀97一区二区三区| 久久av资源网| 欧美日韩久久久一区| 久久精品av麻豆的观看方式| 久久美女艺术照精彩视频福利播放 | 秋霞电影一区二区| 国产欧美日韩不卡免费| 欧美午夜精品免费| 国产精品香蕉一区二区三区| 最新国产精品久久精品| 制服.丝袜.亚洲.中文.综合| 国产99久久久国产精品免费看 | 一区二区三区中文免费| 日韩欧美一区二区免费| 日本高清视频一区二区| 国产一区二区三区四区五区美女| 亚洲精品乱码久久久久久久久| 日韩欧美专区在线| 日本乱码高清不卡字幕| 国产成人小视频| 久久国产生活片100| 亚洲一区二区三区四区中文字幕| 国产欧美精品一区| 精品久久久久香蕉网| 欧美日韩国产综合视频在线观看| 成人免费视频视频在线观看免费| 日韩av不卡在线观看| 洋洋av久久久久久久一区| 欧美—级在线免费片| 亚洲精品在线观看网站| 91精品国产综合久久久久久久| 欧美在线三级电影| 欧亚一区二区三区| 欧美丝袜第三区| 欧美男男青年gay1069videost| 欧美最新大片在线看| 在线观看不卡视频| 欧美日韩1区2区| 91精品国产综合久久蜜臀| 欧美这里有精品| 成人理论电影网| 9色porny自拍视频一区二区| 国产99久久久久久免费看农村| 国产精品一卡二| 成人动漫av在线| 欧美主播一区二区三区| 欧美日韩不卡一区二区| 日韩免费高清电影| 久久精品亚洲国产奇米99| 国产精品电影院| 亚洲午夜免费电影| 久久国产福利国产秒拍| 成人性生交大片免费看视频在线| 99精品视频在线免费观看| 一本色道久久综合亚洲91| 91精品久久久久久蜜臀| 久久久精品一品道一区| 亚洲欧美电影院| 日韩电影一区二区三区| 国产高清不卡二三区| 欧美视频一区二区在线观看| 精品国产露脸精彩对白| 亚洲人一二三区| 久草这里只有精品视频| 91论坛在线播放| 久久丝袜美腿综合| 丝袜亚洲另类欧美综合| 国产成人精品www牛牛影视| 欧美色视频一区| 自拍偷拍国产亚洲| 国产制服丝袜一区| 欧美日韩激情一区二区三区| 久久久久9999亚洲精品| 日韩av一区二区三区| av电影一区二区| 国产精品沙发午睡系列990531| 三级精品在线观看| 欧美视频日韩视频| 日韩理论片在线| 成人av在线网| 欧美国产日本韩| 国产成人a级片| 国产婷婷色一区二区三区| 精品夜夜嗨av一区二区三区| 欧美日韩一区久久| 亚洲电影视频在线| 欧美色精品天天在线观看视频| 亚洲精品视频一区| 色狠狠综合天天综合综合| **性色生活片久久毛片| 久久99国产精品免费网站| 欧美自拍丝袜亚洲| 亚洲福利一二三区| 欧美精品电影在线播放| 日韩二区在线观看| 久久久天堂av| 91麻豆免费视频| 午夜精品久久久久| 欧美精品一区二区三区视频| 国产成人精品一区二| 亚洲视频一二三| 欧美一级夜夜爽| 国产成人a级片| 亚洲电影欧美电影有声小说| 2020国产成人综合网| 99久久婷婷国产综合精品电影| 亚洲欧美区自拍先锋| 91精品国产一区二区人妖| 福利电影一区二区|