摘要 |
<P>PROBLEM TO BE SOLVED: To detect overflow in fewer cycles in an integer add operation etc. <P>SOLUTION: An overflow detection method includes steps of; finding a logical OR of the above 1st sign and the above 2nd sign; finding a logical AND of the above 1st sign and the above 2nd sign; setting a 1st prediction flag ON if the above value of logical OR is 0; setting a 2nd prediction flag ON if the above value of logical AND is 1; and determining that there is overflow when the above 1st prediction flag is ON and the sign of the result of addition of the above 1st data and the above 2nd data is 1, or when the above 2nd prediction flag is ON and the sign of the result of above addition is 0. <P>COPYRIGHT: (C)2007,JPO&INPIT |