patch-2.4.20 linux-2.4.20/arch/mips/math-emu/ieee754dp.c
Next file: linux-2.4.20/arch/mips/math-emu/ieee754dp.h
Previous file: linux-2.4.20/arch/mips/math-emu/ieee754d.c
Back to the patch index
Back to the overall index
- Lines: 43
- Date:
Thu Nov 28 15:53:10 2002
- Orig file:
linux-2.4.19/arch/mips/math-emu/ieee754dp.c
- Orig date:
Fri Aug 2 17:39:43 2002
diff -urN linux-2.4.19/arch/mips/math-emu/ieee754dp.c linux-2.4.20/arch/mips/math-emu/ieee754dp.c
@@ -98,9 +98,9 @@
}
-static unsigned long long get_rounding(int sn, unsigned long long xm)
+static u64 get_rounding(int sn, u64 xm)
{
- /* inexact must round of 3 bits
+ /* inexact must round of 3 bits
*/
if (xm & (DP_MBIT(3) - 1)) {
switch (ieee754_csr.rm) {
@@ -129,7 +129,7 @@
* xe is an unbiased exponent
* xm is 3bit extended precision value.
*/
-ieee754dp ieee754dp_format(int sn, int xe, unsigned long long xm)
+ieee754dp ieee754dp_format(int sn, int xe, u64 xm)
{
assert(xm); /* we dont gen exact zeros (probably should) */
@@ -174,7 +174,7 @@
xe++;
}
else {
- /* sticky right shift es bits
+ /* sticky right shift es bits
*/
xm = XDPSRS(xm, es);
xe += es;
@@ -188,10 +188,10 @@
SETCX(IEEE754_UNDERFLOW);
}
- /* inexact must round of 3 bits
+ /* inexact must round of 3 bits
*/
xm = get_rounding(sn, xm);
- /* adjust exponent for rounding add overflowing
+ /* adjust exponent for rounding add overflowing
*/
if (xm >> (DP_MBITS + 3 + 1)) {
/* add causes mantissa overflow */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)