Cleanup of modified code fixing several overflow checking issues.

This commit is contained in:
carl 2019-06-16 01:27:49 +08:00
parent 3133141a08
commit 0223069d29

View file

@ -181,9 +181,6 @@ PRIVATE long dvi(long w1, long w2, size nbytes)
} }
if (must_test && !(IgnMask&BIT(EIOVFL)))
{
}
return (w1 / w2); return (w1 / w2);
} }
@ -240,10 +237,6 @@ PRIVATE long sli(long w1, long w2, size nbytes)
trap(EIOVFL); trap(EIOVFL);
} }
/* if ((w1 < 0) && (w2 != 0) && ((w1 >> (nbytes*8 - w2)) != -1))
{
trap(EIOVFL);
}*/
} }
} }