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

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

?? mathhalf.c

?? MELPe 1200 bps, fixed point
?? C
?? 第 1 頁 / 共 5 頁
字號:
		if (var1 < 0)
			swOut = negate(var1);
		else
			swOut = var1;
	}
	return(swOut);
}


/***************************************************************************
 *
 *	 FUNCTION NAME: L_abs
 *
 *	 PURPOSE:
 *
 *	   Take the absolute value of the 32 bit input.  An input of
 *	   -0x8000 0000 results in a return value of 0x7fff ffff.
 *
 *	 INPUTS:
 *
 *	   L_var1
 *					   32 bit long signed integer (Longword) whose value
 *					   falls in the range
 *					   0x8000 0000 <= L_var1 <= 0x7fff ffff.
 *
 *	 OUTPUTS:
 *
 *	   none
 *
 *	 RETURN VALUE:
 *
 *	   L_Out
 *					   32 bit long signed integer (Longword) whose value
 *					   falls in the range
 *					   0x8000 0000 <= L_var1 <= 0x7fff ffff.
 *
 *
 *
 *	 KEYWORDS: absolute value, abs
 *
 *************************************************************************/
Longword L_abs(Longword L_var1)
{
	Longword	L_Out;

	if (L_var1 == LW_MIN)
		L_Out = LW_MAX;
	else {
		if (L_var1 < 0)
			L_Out = -L_var1;
		else
			L_Out = L_var1;
	}
	return(L_Out);
}

/*___________________________________________________________________________
 |                                                                           |
 |   Function Name : L40_add                                                 |
 |                                                                           |
 |   Purpose :                                                               |
 |                                                                           |
 |   40 bits addition of 40 bits accumulator with 32 bits variable (L_var1)  |
 |   with overflow control and saturation; the result is set at MAX40        |
 |   when overflow occurs or at MIN40 when underflow occurs.                 |
 |                                                                           |
 |   Complexity weight : 2                                                   |
 |                                                                           |
 |   Inputs :                                                                |
 |                                                                           |
 |    acc      40 bits accumulator (Word40) whose value falls in the         |
 |             range : MIN40 <= acc <= MAX40.                                |
 |                                                                           |
 |    L_var1   32 bit long signed integer (Longword) whose value falls in the  |
 |             range : 0x8000 0000 <= L_var1 <= 0x7fff ffff.                 |
 |                                                                           |
 |   Return Value :                                                          |
 |                                                                           |
 |    acc      40 bits accumulator (Word40) whose value falls in the         |
 |             range : MIN40 <= acc <= MAX40.                                |
 |___________________________________________________________________________|
*/

Word40	L40_add(Word40 acc, Longword L_var1)
{
	if ((acc > MAX_40) || (acc < MIN_40) || (acc != floor(acc))){
		fprintf(stderr, "BASIC_OP: Error in 40 bits format.\n");
		exit(0);
	}

	acc = acc + (Word40)L_var1;

	if (acc > MAX_40){
		acc = MAX_40;
		/* Overflow = 1; */
	}
	if (acc < MIN_40){
		acc = MIN_40;
		/* Overflow = 1; */
	}
	return(acc);
}

/*___________________________________________________________________________
 |                                                                           |
 |   Function Name : L40_sub                                                 |
 |                                                                           |
 |   Purpose :                                                               |
 |                                                                           |
 |   40 bits subtraction of 40 bits accumulator with 32 bits variable        |
 |   (L_var1) with overflow control and saturation; the result is set at     |
 |   MAX40 when overflow occurs or at MIN40 when underflow occurs.           |
 |                                                                           |
 |   Complexity weight : 2                                                   |
 |                                                                           |
 |   Inputs :                                                                |
 |                                                                           |
 |    acc      40 bits accumulator (Word40) whose value falls in the         |
 |             range : MIN40 <= acc <= MAX40.                                |
 |                                                                           |
 |    L_var1   32 bit long signed integer (Longword) whose value falls in the  |
 |             range : 0x8000 0000 <= L_var1 <= 0x7fff ffff.                 |
 |                                                                           |
 |   Return Value :                                                          |
 |                                                                           |
 |    acc      40 bits accumulator (Word40) whose value falls in the         |
 |             range : MIN40 <= acc <= MAX40.                                |
 |___________________________________________________________________________|
*/

Word40 L40_sub(Word40 acc, Longword L_var1)
{
	if ((acc > MAX_40) || (acc < MIN_40) || (acc != floor(acc))){
		fprintf(stderr, "BASIC_OP: Error in 40 bits format.\n");
		exit(0);
	}

	acc = acc - (Word40)L_var1;

	if (acc > MAX_40){
		acc = MAX_40;
		/* Overflow = 1; */
	}
	if (acc < MIN_40){
		acc = MIN_40;
		/* Overflow = 1; */
	}
	return(acc);
}

/*___________________________________________________________________________
 |                                                                           |
 |   Function Name : L40_mac                                                 |
 |                                                                           |
 |   Purpose :                                                               |
 |                                                                           |
 |   Multiply var1 by var2 and shift the result left by 1. Add the result    |
 |   to 40 bits accumulator with overflow control and saturation; the result |
 |   is set at MAX40 when overflow occurs or at MIN40 when underflow occurs. |
 |                                                                           |
 |   Complexity weight : 1                                                   |
 |                                                                           |
 |   Inputs :                                                                |
 |                                                                           |
 |    acc      40 bits accumulator (Word40) whose value falls in the         |
 |             range : MIN40 <= acc <= MAX40.                                |
 |                                                                           |
 |    var1     16 bit short signed integer (Shortword) whose value falls in the |
 |             range : 0xffff 8000 <= var1 <= 0x0000 7fff.                   |
 |                                                                           |
 |    var2     16 bit short signed integer (Shortword) whose value falls in the |
 |             range : 0xffff 8000 <= var1 <= 0x0000 7fff.                   |
 |                                                                           |
 |   Return Value :                                                          |
 |                                                                           |
 |    acc      40 bits accumulator (Word40) whose value falls in the         |
 |             range : MIN40 <= acc <= MAX40.                                |
 |___________________________________________________________________________|
*/

Word40 L40_mac(Word40 acc, Shortword var1, Shortword var2)
{
	if ((acc > MAX_40) || (acc < MIN_40) || (acc != floor(acc))){
		fprintf(stderr, "BASIC_OP: Error in 40 bits format.\n");
		exit(0);
	}

	acc = acc + ((Word40)var1 * (Word40)var2 * 2);

	if (acc > MAX_40){
		acc = MAX_40;
		/* Overflow = 1; */
	}
	if (acc < MIN_40){
		acc = MIN_40;
		/* Overflow = 1; */
	}
	return(acc);
}

/*___________________________________________________________________________
 |                                                                           |
 |   Function Name : L40_msu                                                 |
 |                                                                           |
 |   Purpose :                                                               |
 |                                                                           |
 |   Multiply var1 by var2 and shift the result left by 1. Subtract the      |
 |   result to 40 bits accumulator with overflow control and saturation;     |
 |   the result is set at MAX40 when overflow occurs or at MIN40 when        |
 |   underflow occurs.                                                       |
 |                                                                           |
 |   Complexity weight : 1                                                   |
 |                                                                           |
 |   Inputs :                                                                |
 |                                                                           |
 |    acc      40 bits accumulator (Word40) whose value falls in the         |
 |             range : MIN40 <= acc <= MAX40.                                |
 |                                                                           |
 |    var1     16 bit short signed integer (Shortword) whose value falls in the |
 |             range : 0xffff 8000 <= var1 <= 0x0000 7fff.                   |
 |                                                                           |
 |    var2     16 bit short signed integer (Shortword) whose value falls in the |
 |             range : 0xffff 8000 <= var1 <= 0x0000 7fff.                   |
 |                                                                           |
 |   Return Value :                                                          |
 |                                                                           |
 |    acc      40 bits accumulator (Word40) whose value falls in the         |
 |             range : MIN40 <= acc <= MAX40.                                |
 |___________________________________________________________________________|
*/

Word40 L40_msu(Word40 acc, Shortword var1, Shortword var2)
{
	if ((acc > MAX_40) || (acc < MIN_40) || (acc != floor(acc))){
		fprintf(stderr, "BASIC_OP: Error in 40 bits format.\n");
		exit(0);
	}

	acc = acc - ((Word40)var1 * (Word40)var2 * 2);

	if (acc > MAX_40){
		acc = MAX_40;
		/* Overflow = 1; */
	}
	if (acc < MIN_40){
		acc = MIN_40;
		/* Overflow = 1; */
	}
	return(acc);
}

/*___________________________________________________________________________
 |                                                                           |
 |   Function Name : L40_shl                                                 |
 |                                                                           |
 |   Purpose :                                                               |
 |                                                                           |
 |   Arithmetically shift the 40 bits accumulator left var1 positions. Zero  |
 |   fill the var1 LSB of the result. If var1 is negative, arithmetically    |
 |   shift 40 bits accumulator right by -var1 with sign extension. Saturate  |
 |   the result in case of underflows or overflows.                          |              |
 |                                                                           |
 |   Complexity weight : 2                                                   |
 |                                                                           |
 |   Inputs :                                                                |
 |                                                                           |
 |    acc      40 bits accumulator (Word40) whose value falls in the         |
 |             range : MIN40 <= acc <= MAX40.                                |
 |                                                                           |
 |    var1     16 bit short signed integer (Shortword) whose value falls in the |
 |             range : 0xffff 8000 <= var1 <= 0x0000 7fff.                   |
 |                                                                           |
 |   Return Value :                                                          |
 |                                                                           |
 |    acc      40 bits accumulator (Word40) whose value falls in the         |
 |             range : MIN40 <= acc <= MAX40.                                |
 |___________________________________________________________________________|
*/

Word40 L40_shl(Word40 acc, Shortword var1)
{

	if ((acc > MAX_40) || (acc < MIN_40) || (acc != floor(acc))){
		fprintf(stderr, "BASIC_OP: Error in 40 bits format.\n");
		exit(0);
	}

	if (var1 < 0){
		acc = L40_shr(acc, (Shortword) (-var1));
	} else {
		for(; var1 > 0; var1--){
			acc = acc * 2;
			if (acc > MAX_40){
				acc = MAX_40;
				break;
			} else if (acc < MIN_40){
				acc = MIN_40;
				break;
			}
		}
	}
	return(acc);
}


/*___________________________________________________________________________
 |                                                                           |
 |   Function Name : L40_shr                                                 |
 |                                                                           |
 |   Purpose :                                                               |
 |                                                                           |
 |   Arithmetically shift the 40 bits accumulator right var1 positions with  |
 |   sign extension. If var1 is negative, arithmetically shift 40 bits       |
 |   accumulator left by -var1 and zero fill the var1 LSB of the result.     |
 |   Saturate the result in case of underflows or overflows.                 |
 |                                                                           |
 |   Complexity weight : 2                                                   |
 |                                                                           |
 |   Inputs :                                                                |
 |                                                                           |
 |    acc      40 bits accumulator (Word40) whose value falls in the         |
 |             range : MIN40 <= acc <= MAX40.                                |
 |                                                                           |
 |    var1     16 bit short signed integer (Shortword) whose value falls in the |
 |             range : 0xffff 8000 <= var1 <= 0x0000 7fff.                   |
 |                                                                           |
 |   Return Value :                                                          |
 |                                                                           |
 |    acc      40 bits accumulator (Word40) whose value falls in the         |
 |             range : MIN40 <= acc <= MAX40.                                |
 |___________________________________________________________________________|
*/

Word40 L40_shr(Word40 acc, Shortword var1)
{

	if ((acc > MAX_40) || (acc < MIN_40) || (acc != floor(acc))){
		fprintf(stderr, "BASIC_OP: Error in 40 bits format.\n");
		exit(0);
	}

	if (var1 < 0){
		acc = L40_shl(acc, (Shortword) -var1);
	} else { 
		for ( ; var1 > 0; var1--){
			acc = floor(acc * 0.5);
			if ((acc == 0) || (acc == -1))
				break;
		}
	}
	return(acc);
}


/*___________________________________________________________________________
 |                                                                           |
 |   Function Name : L40_negate                                              |
 |                                                                           |
 |   Purpose :                                                               |
 |                                                                           |
 |   Negate the 40 bits accumulator with saturation; saturate to MAX40 in    |
 |   the case where input is MIN40.                                          |
 |                                                                           |
 |   Complexity weight : 2                                                   |
 |                                                                           |
 |   Inputs :                                                                |
 |                                                                           |
 |    acc      40 bits accumulator (Word40) whose value falls in the         |
 |             range : MIN40 <= acc <= MAX40.                                |
 |                                                                           |
 |   Return Value :                                                          |
 |                                                                           |
 |    acc      40 bits accumulator (Word40) whose value falls in the         |
 |             range : MIN40 <= acc <= MAX40.                                |
 |___________________________________________________________________________|
*/

Word40 L40_negate(Word40 acc)
{
	if ((acc > MAX_40) || (acc < MIN_40) || (acc != floor(acc))){
		fprintf(stderr, "BASIC_OP: Error in 40 bits format.\n");
		exit(0);
	}

	acc = -acc;

	if (acc > MAX_40){
		acc = MAX_40;
	}
	return(acc);
}

/*___________________________________________________________________________
 |                                                                           |
 |   Function Name : norm32                                                  |
 |                                                                           |
 |   Purpose :                                                               |
 |                                                                           |
 |   Produces the number of left shift needed to normalize the 40 bits       |
 |   accumulator in 32 bits format (for positive value on the interval with  |
 |   minimum of 1073741824 and maximum of 2147483647, and for negative value |
 |   on the interval with minimum of -2147483648 and maximum of -1073741824);|
 |   in order to normalize the result, the following operation must be done: |
 |                   norm32_acc = L40_shl(acc, norm32(acc)).                 |
 |                                                                           |
 |   Complexity weight : 2                                                   |
 |                                                                           |
 |   Inputs :                                                                |
 |                                                                           |
 |    acc      40 bits accumulator (Word40) whose value falls in the         |
 |             range : MIN40 <= acc <= MAX40.                                |
 |                                                                           |
 |   Return Value :                                                          |
 |                                                                           |
 |    var1     16 bit short signed integer (Shortword) whose value falls in the |
 |             range : -8 <= var_out <= 31.                                  |
 |___________________________________________________________________________|
*/

Shortword norm32(Word40 acc)
{
	Shortword	var1;

	if ((acc >

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品不卡在线观看| 精品视频一区二区不卡| 欧美精品一区二区三区蜜臀 | 中文字幕欧美国产| 国产成人精品1024| 国产欧美日本一区二区三区| 国产精品一区二区在线观看不卡| 久久久久久久久岛国免费| 成人午夜伦理影院| 亚洲蜜臀av乱码久久精品| 欧美一a一片一级一片| 国产在线国偷精品免费看| 国产日韩高清在线| 99视频有精品| 日韩av中文字幕一区二区 | 在线观看av不卡| 日韩一区欧美二区| 久久久久久久综合日本| 99久久精品免费看国产免费软件| 亚洲一区二区三区四区五区中文| 91精品国产麻豆| 国产精品一二三区在线| 自拍偷拍亚洲欧美日韩| 日韩一区二区三区精品视频 | 日本成人在线不卡视频| 久久久久久9999| 91美女视频网站| 免费亚洲电影在线| 国产精品乱码久久久久久| 欧美三级欧美一级| 国产99久久久久久免费看农村| 亚洲国产日韩综合久久精品| 久久夜色精品国产噜噜av | 欧美日韩国产首页在线观看| 国产在线不卡一区| 亚洲综合免费观看高清完整版 | 欧美日韩激情一区二区三区| 伦理电影国产精品| 亚洲精品水蜜桃| 久久久噜噜噜久久中文字幕色伊伊 | 久久蜜桃一区二区| 欧美精品色综合| 成人激情开心网| 久久精品国产99| 亚洲一区视频在线观看视频| 久久久亚洲欧洲日产国码αv| 在线观看欧美精品| 91精品国产综合久久精品| 国产精品一区二区x88av| 日韩av一区二区在线影视| 亚洲人成精品久久久久| 国产午夜精品福利| 日韩欧美国产午夜精品| 在线观看亚洲精品视频| 成人动漫一区二区三区| 久久er精品视频| 奇米在线7777在线精品| 亚洲超碰精品一区二区| 悠悠色在线精品| 日韩理论片中文av| 国产欧美一区二区精品久导航| 91精品国产品国语在线不卡| 91黄色小视频| 一本高清dvd不卡在线观看| 成人亚洲一区二区一| 国产主播一区二区三区| 日本aⅴ亚洲精品中文乱码| 五月天亚洲精品| 亚洲国产一区二区三区 | 欧美人xxxx| 欧美性感一区二区三区| 色婷婷综合五月| 色综合久久久久久久| 99久久精品99国产精品| av中文字幕一区| 99久久免费精品| 99精品热视频| 99re6这里只有精品视频在线观看| 成人综合在线观看| 成人福利视频在线看| 成人黄色软件下载| 成人av第一页| 99re在线精品| 欧美性三三影院| 欧美久久久久中文字幕| 在线电影欧美成精品| 日韩亚洲欧美高清| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 五月天网站亚洲| 日本不卡一二三区黄网| 久久精品国产色蜜蜜麻豆| 精品一区二区综合| 国产91富婆露脸刺激对白| av一区二区三区在线| 91国偷自产一区二区三区成为亚洲经典 | 色综合久久综合中文综合网| 99国产精品久久久久久久久久| 日本高清不卡视频| 欧美精品久久99久久在免费线| 91精品久久久久久蜜臀| 久久久国产综合精品女国产盗摄| 国产精品久久久久久久久免费樱桃| **网站欧美大片在线观看| 亚洲成av人片在www色猫咪| 久久国产精品99久久人人澡| 国产aⅴ综合色| 欧美日韩在线综合| 2023国产一二三区日本精品2022| 国产精品久久777777| 亚洲大片免费看| 国产在线精品不卡| 91福利小视频| 欧美精品一区二区三区在线播放| 中文字幕字幕中文在线中不卡视频| 亚洲v日本v欧美v久久精品| 韩国一区二区三区| 色综合色综合色综合色综合色综合| 欧美一区二区在线播放| 国产精品久久三| 日本欧美一区二区| 99久久精品一区| 日韩女优毛片在线| 一区二区三区在线看| 精品一区二区免费看| 欧美最新大片在线看| 久久综合狠狠综合久久激情| 亚洲一区精品在线| 成人视屏免费看| 精品sm捆绑视频| 亚洲成av人影院| 91美女福利视频| 久久嫩草精品久久久精品| 午夜影院久久久| 一本到不卡精品视频在线观看| 久久青草欧美一区二区三区| 天堂蜜桃一区二区三区 | 成人精品免费看| 日韩欧美精品在线视频| 亚洲一区二区在线观看视频| 成人看片黄a免费看在线| 精品理论电影在线观看| 首页国产欧美日韩丝袜| 在线观看区一区二| 中文字幕视频一区二区三区久| 狠狠色狠狠色合久久伊人| 欧美麻豆精品久久久久久| 亚洲色欲色欲www| 成人免费福利片| 亚洲精品一线二线三线无人区| 亚洲成人免费影院| 欧美伊人久久大香线蕉综合69 | 日韩欧美国产综合| 日韩成人av影视| 欧美日韩精品一区二区天天拍小说| 亚洲色欲色欲www| 成人av在线一区二区| 久久久亚洲精品一区二区三区| 蜜臀国产一区二区三区在线播放| 欧美色视频一区| 亚洲在线免费播放| 欧美三级电影在线看| 亚洲综合偷拍欧美一区色| 色老头久久综合| 亚洲免费在线观看| 99久久精品国产精品久久| 一区在线中文字幕| 99久久精品情趣| 亚洲图片你懂的| 91免费观看视频| 一区二区三国产精华液| 色综合天天视频在线观看| 伊人一区二区三区| 欧美日韩一本到| 91麻豆精品在线观看| 亚洲日本在线看| 欧美在线影院一区二区| 丝袜诱惑亚洲看片| 日韩欧美中文字幕一区| 国内成+人亚洲+欧美+综合在线| 久久亚洲捆绑美女| 国产aⅴ综合色| 亚洲欧美日韩在线| 555www色欧美视频| 国产一区二区在线视频| 亚洲国产精品国自产拍av| 色中色一区二区| 婷婷久久综合九色国产成人| 日韩欧美在线影院| 国产激情一区二区三区桃花岛亚洲| 国产精品日日摸夜夜摸av| 色综合亚洲欧洲| 丝袜亚洲精品中文字幕一区| 日韩欧美一区二区免费| 国产一区二区精品久久99| 国产精品乱码久久久久久| 欧美最新大片在线看| 久久福利视频一区二区| 国产精品情趣视频| 欧美综合亚洲图片综合区| 蜜桃一区二区三区四区|