patch-1.3.78 linux/arch/alpha/math-emu/ieee-math.c

Next file: linux/arch/i386/boot/setup.S
Previous file: linux/arch/alpha/math-emu/fp-emul.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.77/linux/arch/alpha/math-emu/ieee-math.c linux/arch/alpha/math-emu/ieee-math.c
@@ -501,7 +501,7 @@
 
 
 static unsigned long
-round_t_ieee (EXTENDED *a, unsigned long *b, int f)
+round_t_ieee (int f, EXTENDED *a, unsigned long *b)
 {
 	unsigned long diff1, diff2, res;
 	EXTENDED z1, z2;
@@ -626,7 +626,7 @@
 		}
 		return 0;
 	}
-	return round_s_ieee(f, &temp, b);
+	return round_t_ieee(f, &temp, b);
 }
 
 
@@ -717,7 +717,7 @@
 	}
 	op_b.e = 55;
 	normalize(&op_b);
-	return round_t_ieee(&op_b, b, f);
+	return round_t_ieee(f, &op_b, b);
 }
 
 
@@ -993,7 +993,7 @@
 	if (a_type == ZERO && b_type == ZERO)
 		op_c.s = op_a.s && op_b.s;
 
-	return round_t_ieee(&op_c, c, f);	
+	return round_t_ieee(f, &op_c, c);
 }
 
 
@@ -1093,7 +1093,7 @@
 	if (a_type == ZERO && b_type == ZERO)
 		op_c.s = op_a.s && op_b.s;
 
-	return round_t_ieee(&op_c, c, f);
+	return round_t_ieee(f, &op_c, c);
 }
 
 
@@ -1206,7 +1206,7 @@
 	normalize(&op_c);
 	op_c.e -= 55;	/* drop the 55 original bits. */
 
-	return round_t_ieee(&op_c, c, f);
+	return round_t_ieee(f, &op_c, c);
 }
 
 
@@ -1339,5 +1339,5 @@
 		op_c.f[0] |= STICKY_T;
 	normalize(&op_c);
 	op_c.e -= 9;		/* remove excess exp from original shift */
-	return round_t_ieee(&op_c, c, f);
+	return round_t_ieee(f, &op_c, c);
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this