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

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

?? reg_round.s

?? 內(nèi)核是系統(tǒng)的心臟
?? S
?? 第 1 頁 / 共 2 頁
字號:
	.file "reg_round.S"
/*---------------------------------------------------------------------------+
 |  reg_round.S                                                              |
 |                                                                           |
 | Rounding/truncation/etc for FPU basic arithmetic functions.               |
 |                                                                           |
 | Copyright (C) 1993                                                        |
 |                       W. Metzenthen, 22 Parker St, Ormond, Vic 3163,      |
 |                       Australia.  E-mail   billm@vaxc.cc.monash.edu.au    |
 |                                                                           |
 | This code has four possible entry points.                                 |
 | The following must be entered by a jmp intruction:                        |
 |   fpu_reg_round, fpu_reg_round_sqrt, and fpu_Arith_exit.                  |
 |                                                                           |
 | The _round_reg entry point is intended to be used by C code.              |
 | From C, call as:                                                          |
 | void round_reg(FPU_REG *arg, unsigned int extent, unsigned int control_w) |
 |                                                                           |
 | For correct "up" and "down" rounding, the argument must have the correct  |
 | sign.                                                                     |
 |                                                                           |
 +---------------------------------------------------------------------------*/

/*---------------------------------------------------------------------------+
 | Four entry points.                                                        |
 |                                                                           |
 | Needed by both the fpu_reg_round and fpu_reg_round_sqrt entry points:     |
 |  %eax:%ebx  64 bit significand                                            |
 |  %edx       32 bit extension of the significand                           |
 |  %edi       pointer to an FPU_REG for the result to be stored             |
 |  stack      calling function must have set up a C stack frame and         |
 |             pushed %esi, %edi, and %ebx                                   |
 |                                                                           |
 | Needed just for the fpu_reg_round_sqrt entry point:                       |
 |  %cx  A control word in the same format as the FPU control word.          |
 | Otherwise, PARAM4 must give such a value.                                 |
 |                                                                           |
 |                                                                           |
 | The significand and its extension are assumed to be exact in the          |
 | following sense:                                                          |
 |   If the significand by itself is the exact result then the significand   |
 |   extension (%edx) must contain 0, otherwise the significand extension    |
 |   must be non-zero.                                                       |
 |   If the significand extension is non-zero then the significand is        |
 |   smaller than the magnitude of the correct exact result by an amount     |
 |   greater than zero and less than one ls bit of the significand.          |
 |   The significand extension is only required to have three possible       |
 |   non-zero values:                                                        |
 |       less than 0x80000000  <=> the significand is less than 1/2 an ls    |
 |                                 bit smaller than the magnitude of the     |
 |                                 true exact result.                        |
 |         exactly 0x80000000  <=> the significand is exactly 1/2 an ls bit  |
 |                                 smaller than the magnitude of the true    |
 |                                 exact result.                             |
 |    greater than 0x80000000  <=> the significand is more than 1/2 an ls    |
 |                                 bit smaller than the magnitude of the     |
 |                                 true exact result.                        |
 |                                                                           |
 +---------------------------------------------------------------------------*/

/*---------------------------------------------------------------------------+
 |  The code in this module has become quite complex, but it should handle   |
 |  all of the FPU flags which are set at this stage of the basic arithmetic |
 |  computations.                                                            |
 |  There are a few rare cases where the results are not set identically to  |
 |  a real FPU. These require a bit more thought because at this stage the   |
 |  results of the code here appear to be more consistent...                 |
 |  This may be changed in a future version.                                 |
 +---------------------------------------------------------------------------*/


#include "fpu_asm.h"
#include "exception.h"
#include "control_w.h"

/* Flags for FPU_bits_lost */
#define	LOST_DOWN	$1
#define	LOST_UP		$2

/* Flags for FPU_denormal */
#define	DENORMAL	$1
#define	UNMASKED_UNDERFLOW $2


#ifdef REENTRANT_FPU
/*	Make the code re-entrant by putting
	local storage on the stack: */
#define FPU_bits_lost	(%esp)
#define FPU_denormal	1(%esp)

#else
/*	Not re-entrant, so we can gain speed by putting
	local storage in a static area: */
.data
	.align 2,0
FPU_bits_lost:
	.byte	0
FPU_denormal:
	.byte	0
#endif REENTRANT_FPU


.text
	.align 2,144
.globl fpu_reg_round
.globl fpu_reg_round_sqrt
.globl fpu_Arith_exit
.globl _round_reg

/* Entry point when called from C */
_round_reg:
	pushl	%ebp
	movl	%esp,%ebp
	pushl	%esi
	pushl	%edi
	pushl	%ebx

	movl	PARAM1,%edi
	movl	SIGH(%edi),%eax
	movl	SIGL(%edi),%ebx
	movl	PARAM2,%edx
	movl	PARAM3,%ecx
	jmp	fpu_reg_round_sqrt

fpu_reg_round:			/* Normal entry point */
	movl	PARAM4,%ecx

fpu_reg_round_sqrt:		/* Entry point from wm_sqrt.S */

#ifdef REENTRANT_FPU
	pushl	%ebx		/* adjust the stack pointer */
#endif REENTRANT_FPU

#ifdef PARANOID
/* Cannot use this here yet */
/*	orl	%eax,%eax */
/*	jns	L_entry_bugged */
#endif PARANOID

	cmpl	EXP_UNDER,EXP(%edi)
	jle	xMake_denorm			/* The number is a de-normal */

	movb	$0,FPU_denormal			/* 0 -> not a de-normal */

xDenorm_done:
	movb	$0,FPU_bits_lost		/* No bits yet lost in rounding */

	movl	%ecx,%esi
	andl	CW_PC,%ecx
	cmpl	PR_64_BITS,%ecx
	je	LRound_To_64

	cmpl	PR_53_BITS,%ecx
	je	LRound_To_53

	cmpl	PR_24_BITS,%ecx
	je	LRound_To_24

#ifdef PECULIAR_486
/* With the precision control bits set to 01 "(reserved)", a real 80486
   behaves as if the precision control bits were set to 11 "64 bits" */
	cmpl	PR_RESERVED_BITS,%ecx
	je	LRound_To_64
#ifdef PARANOID
	jmp	L_bugged_denorm_486
#endif PARANOID
#else
#ifdef PARANOID
	jmp	L_bugged_denorm	/* There is no bug, just a bad control word */
#endif PARANOID
#endif PECULIAR_486


/* Round etc to 24 bit precision */
LRound_To_24:
	movl	%esi,%ecx
	andl	CW_RC,%ecx
	cmpl	RC_RND,%ecx
	je	LRound_nearest_24

	cmpl	RC_CHOP,%ecx
	je	LCheck_truncate_24

	cmpl	RC_UP,%ecx		/* Towards +infinity */
	je	LUp_24

	cmpl	RC_DOWN,%ecx		/* Towards -infinity */
	je	LDown_24

#ifdef PARANOID
	jmp	L_bugged_round24
#endif PARANOID

LUp_24:
	cmpb	SIGN_POS,SIGN(%edi)
	jne	LCheck_truncate_24	/* If negative then  up==truncate */

	jmp	LCheck_24_round_up

LDown_24:
	cmpb	SIGN_POS,SIGN(%edi)
	je	LCheck_truncate_24	/* If positive then  down==truncate */

LCheck_24_round_up:
	movl	%eax,%ecx
	andl	$0x000000ff,%ecx
	orl	%ebx,%ecx
	orl	%edx,%ecx
	jnz	LDo_24_round_up
	jmp	LRe_normalise

LRound_nearest_24:
	/* Do rounding of the 24th bit if needed (nearest or even) */
	movl	%eax,%ecx
	andl	$0x000000ff,%ecx
	cmpl	$0x00000080,%ecx
	jc	LCheck_truncate_24	/* less than half, no increment needed */

	jne	LGreater_Half_24	/* greater than half, increment needed */

	/* Possibly half, we need to check the ls bits */
	orl	%ebx,%ebx
	jnz	LGreater_Half_24	/* greater than half, increment needed */

	orl	%edx,%edx
	jnz	LGreater_Half_24	/* greater than half, increment needed */

	/* Exactly half, increment only if 24th bit is 1 (round to even) */
	testl	$0x00000100,%eax
	jz	LDo_truncate_24

LGreater_Half_24:			/* Rounding: increment at the 24th bit */
LDo_24_round_up:
	andl	$0xffffff00,%eax	/* Truncate to 24 bits */
	xorl	%ebx,%ebx
	movb	LOST_UP,FPU_bits_lost
	addl	$0x00000100,%eax
	jmp	LCheck_Round_Overflow

LCheck_truncate_24:
	movl	%eax,%ecx
	andl	$0x000000ff,%ecx
	orl	%ebx,%ecx
	orl	%edx,%ecx
	jz	LRe_normalise		/* No truncation needed */

LDo_truncate_24:
	andl	$0xffffff00,%eax	/* Truncate to 24 bits */
	xorl	%ebx,%ebx
	movb	LOST_DOWN,FPU_bits_lost
	jmp	LRe_normalise


/* Round etc to 53 bit precision */
LRound_To_53:
	movl	%esi,%ecx
	andl	CW_RC,%ecx
	cmpl	RC_RND,%ecx
	je	LRound_nearest_53

	cmpl	RC_CHOP,%ecx
	je	LCheck_truncate_53

	cmpl	RC_UP,%ecx		/* Towards +infinity */
	je	LUp_53

	cmpl	RC_DOWN,%ecx		/* Towards -infinity */
	je	LDown_53

#ifdef PARANOID
	jmp	L_bugged_round53
#endif PARANOID

LUp_53:
	cmpb	SIGN_POS,SIGN(%edi)
	jne	LCheck_truncate_53	/* If negative then  up==truncate */

	jmp	LCheck_53_round_up

LDown_53:
	cmpb	SIGN_POS,SIGN(%edi)
	je	LCheck_truncate_53	/* If positive then  down==truncate */

LCheck_53_round_up:
	movl	%ebx,%ecx
	andl	$0x000007ff,%ecx
	orl	%edx,%ecx
	jnz	LDo_53_round_up
	jmp	LRe_normalise

LRound_nearest_53:
	/* Do rounding of the 53rd bit if needed (nearest or even) */
	movl	%ebx,%ecx
	andl	$0x000007ff,%ecx
	cmpl	$0x00000400,%ecx
	jc	LCheck_truncate_53	/* less than half, no increment needed */

	jnz	LGreater_Half_53	/* greater than half, increment needed */

	/* Possibly half, we need to check the ls bits */
	orl	%edx,%edx
	jnz	LGreater_Half_53	/* greater than half, increment needed */

	/* Exactly half, increment only if 53rd bit is 1 (round to even) */
	testl	$0x00000800,%ebx
	jz	LTruncate_53

LGreater_Half_53:			/* Rounding: increment at the 53rd bit */
LDo_53_round_up:
	movb	LOST_UP,FPU_bits_lost
	andl	$0xfffff800,%ebx	/* Truncate to 53 bits */
	addl	$0x00000800,%ebx
	adcl	$0,%eax
	jmp	LCheck_Round_Overflow

LCheck_truncate_53:
	movl	%ebx,%ecx
	andl	$0x000007ff,%ecx
	orl	%edx,%ecx
	jz	LRe_normalise

LTruncate_53:
	movb	LOST_DOWN,FPU_bits_lost
	andl	$0xfffff800,%ebx	/* Truncate to 53 bits */
	jmp	LRe_normalise


/* Round etc to 64 bit precision */
LRound_To_64:
	movl	%esi,%ecx
	andl	CW_RC,%ecx
	cmpl	RC_RND,%ecx
	je	LRound_nearest_64

	cmpl	RC_CHOP,%ecx
	je	LCheck_truncate_64

	cmpl	RC_UP,%ecx		/* Towards +infinity */
	je	LUp_64

	cmpl	RC_DOWN,%ecx		/* Towards -infinity */
	je	LDown_64

#ifdef PARANOID
	jmp	L_bugged_round64
#endif PARANOID

LUp_64:
	cmpb	SIGN_POS,SIGN(%edi)
	jne	LCheck_truncate_64	/* If negative then  up==truncate */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品在线免费观看| 成人毛片在线观看| 91精品国产综合久久精品性色| 亚洲最大色网站| 欧美日韩亚洲另类| 三级久久三级久久久| 3atv一区二区三区| 韩国欧美国产1区| 久久精品日韩一区二区三区| 成人国产精品免费观看| 亚洲黄色av一区| 欧美日韩国产免费一区二区| 麻豆成人综合网| 中文一区一区三区高中清不卡| 成人动漫在线一区| 亚洲午夜久久久久久久久电影院| 欧美人妖巨大在线| 国产一区二区三区高清播放| 国产精品久久一级| 精品视频在线免费观看| 国内外成人在线视频| 亚洲三级理论片| 精品污污网站免费看| 国产在线乱码一区二区三区| 国产精品超碰97尤物18| 91麻豆精品国产91久久久使用方法| 精品亚洲porn| 亚洲精品成人天堂一二三| 在线电影一区二区三区| 国产黄人亚洲片| 亚洲高清免费视频| 中文字幕精品一区二区三区精品 | 欧美亚洲国产一区在线观看网站 | 蜜臀av亚洲一区中文字幕| 久久精品欧美日韩精品| 欧美日韩一区二区三区四区 | 久久成人av少妇免费| 综合分类小说区另类春色亚洲小说欧美 | 在线观看国产一区二区| 激情文学综合网| 亚洲午夜国产一区99re久久| 久久精品人人做| 欧美色综合久久| 国产a久久麻豆| 日本强好片久久久久久aaa| 中文字幕乱码一区二区免费| 91精品久久久久久久91蜜桃| 91蜜桃在线观看| 国产一区在线精品| 亚洲h在线观看| 中文字幕佐山爱一区二区免费| 日韩一区二区在线观看| 色欧美日韩亚洲| 懂色av噜噜一区二区三区av| 免费欧美日韩国产三级电影| 亚洲精选视频在线| 国产精品国产馆在线真实露脸 | 亚洲精品乱码久久久久久| 久久精品视频免费观看| 欧美一区二区免费视频| 欧美亚男人的天堂| 94色蜜桃网一区二区三区| 国产传媒日韩欧美成人| 黄色精品一二区| 蜜臀av性久久久久蜜臀av麻豆| 午夜影院久久久| 一区二区视频在线看| 1024精品合集| 最新中文字幕一区二区三区| 国产精品亲子乱子伦xxxx裸| 国产喷白浆一区二区三区| 久久久99久久精品欧美| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 久久久美女毛片| 久久在线免费观看| 欧美不卡123| 精品裸体舞一区二区三区| 欧美精选在线播放| 欧美精品久久久久久久多人混战 | 亚洲一区二区三区四区不卡| 亚洲欧美影音先锋| 中文字幕一区二区三中文字幕| 日本一二三不卡| 亚洲国产成人在线| 久久久久久免费| 久久香蕉国产线看观看99| 久久久欧美精品sm网站| 国产女同互慰高潮91漫画| 国产精品无遮挡| 中文字幕亚洲精品在线观看| 亚洲免费av在线| 天堂影院一区二区| 久久国产三级精品| 国产原创一区二区| 福利一区福利二区| 一本一道久久a久久精品综合蜜臀 一本一道综合狠狠老 | 欧美性xxxxxx少妇| 91精品国产高清一区二区三区| 日韩精品一区二区三区swag| 久久亚洲二区三区| 中文字幕一区二区三中文字幕| 一区二区高清在线| 日韩av午夜在线观看| 黄色成人免费在线| 91视视频在线观看入口直接观看www | 欧美日韩视频一区二区| 日韩一级大片在线| 国产视频911| 一区二区不卡在线播放 | 欧美日本一道本在线视频| 精品少妇一区二区三区| 国产精品乱码一区二区三区软件| 亚洲精品成人a在线观看| 蜜臀av一区二区在线观看| 成人黄色免费短视频| 欧美日韩午夜精品| 国产人成亚洲第一网站在线播放 | 91网站最新地址| 在线不卡中文字幕播放| 国产色产综合产在线视频| 亚洲一区二区3| av电影在线观看一区| 欧美三级日韩三级| 国产欧美一区二区精品性| 亚洲一区二区精品久久av| 国产一区二区中文字幕| 欧美丝袜丝交足nylons| 久久―日本道色综合久久| 亚洲制服丝袜在线| 国产成人av电影在线观看| 欧美精品123区| 日韩一区中文字幕| 精品一区二区三区在线播放| 一本久道中文字幕精品亚洲嫩| 日韩精品中午字幕| 亚洲国产视频网站| 成人高清视频在线| 日韩精品最新网址| 亚洲第一综合色| 99久久精品免费精品国产| 欧美xfplay| 亚洲1区2区3区视频| 91丝袜美女网| 中文字幕av一区二区三区高 | 最近日韩中文字幕| 国产激情一区二区三区桃花岛亚洲| 欧美亚洲国产一区二区三区va| 国产精品免费看片| 国产裸体歌舞团一区二区| 日韩亚洲欧美成人一区| 亚洲综合丁香婷婷六月香| 成人av在线一区二区三区| 久久精品夜色噜噜亚洲aⅴ| 免费看精品久久片| 在线播放日韩导航| 亚洲一区二区三区三| www.亚洲精品| 国产精品剧情在线亚洲| 国产精品一区一区| 欧美成人女星排名| 蜜桃久久久久久| 在线不卡的av| 日韩av高清在线观看| 3d动漫精品啪啪一区二区竹菊| 亚洲影院在线观看| 色欧美乱欧美15图片| 亚洲三级在线播放| 99国产精品久久久久久久久久久| 久久精品一区二区| 国产精品羞羞答答xxdd| 久久久久国色av免费看影院| 国产精一区二区三区| 久久久久免费观看| 国产福利一区二区三区| 中文字幕的久久| av电影一区二区| 一区二区三区四区不卡在线| 色综合咪咪久久| 亚洲国产裸拍裸体视频在线观看乱了| 欧美中文一区二区三区| 亚洲不卡一区二区三区| 51午夜精品国产| 美腿丝袜亚洲三区| 久久精品免视看| 白白色亚洲国产精品| 一区二区三区资源| 欧美日韩夫妻久久| 久久成人免费电影| 欧美高清在线视频| 色美美综合视频| 日韩av二区在线播放| 久久久三级国产网站| 99久精品国产| 亚洲成人动漫在线观看| 日韩女优av电影在线观看| 成人一区二区三区在线观看| 日韩久久一区二区| 5566中文字幕一区二区电影| 国产激情视频一区二区三区欧美 | 亚洲精品福利视频网站|