⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sft_ext.c

📁 操作系统源代码
💻 C
字号:
/*  (c) copyright 1988 by the Vrije Universiteit, Amsterdam, The Netherlands.  See the copyright notice in the ACK home directory, in the file "Copyright".*//* $Header: sft_ext.c,v 1.5 93/01/05 12:06:28 ceriel Exp $ *//*	SHIFT TWO EXTENDED NUMBERS INTO PROPER	ALIGNMENT FOR ADDITION (exponents are equal)	Numbers should not be zero on entry.*/#include "FP_types.h"voidsft_ext(e1,e2)EXTEND	*e1,*e2;{	register	EXTEND	*s;	register	int	diff;	diff = e1->exp - e2->exp;	if (!diff)		return;	/* exponents are equal	*/	if (diff < 0)	{ /* e2 is larger	*/			/* shift e1		*/		diff = -diff;		s = e1;	}	else		/* e1 is larger		*/			/* shift e2		*/		s = e2;	s->exp += diff;	b64_sft(&(s->mantissa), diff);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -