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

Next file: linux/arch/alpha/mm/fault.c
Previous file: linux/arch/alpha/lib/stacktrace.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.120/linux/arch/alpha/math-emu/ieee-math.c linux/arch/alpha/math-emu/ieee-math.c
@@ -786,13 +786,11 @@
 		break;
 
 	      case ROUND_PINF:
-		if ((temp.f[0] & 0x007fffffffffffff) != 0)
-			++b;
+		b += ((temp.f[0] & 0x007fffffffffffff) != 0 && !temp.s);
 		break;
 
 	      case ROUND_NINF:
-		if ((temp.f[0] & 0x007fffffffffffff) != 0)
-			--b;
+		b += ((temp.f[0] & 0x007fffffffffffff) != 0 && temp.s);
 		break;
 
 	      case ROUND_CHOP:

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov