Claims
- 1. A method for adding a first binary number to a second binary number wherein said first binary number is contained in a first register and said second binary number is contained in a second register comprising the steps of (A) comparing the same significant bit of each of the bits of said first and second registers and only when said first register has a one value and said second register has a zero value, changing the one value in the first register to a zero value and the zero value in the second register to a one value; (B) comparing the same significant bit of each of the first and second registers and the next higher significant bit of said first register, and only when the next higher significant bit has a value of zero and the other bits have a one value, changing the zero value to a one value and the one values to zero values; and (C) repeating steps A and B until the first register has all zero values whereby the second register contains the digital sum of said first and second registers.
- 2. A method as set forth in claim 1 further comprising the step of performing steps A and B as parallel operations the first time and each repeated time.
- 3. A method as set forth in claim 2 wherein said first register further has an overflow bin which is regarded for the purposes of step B as the most significant bit plus one of the first register; and said overflow bin considered as the most significant bit plus one of the second register for determining when the first register has all zeros and for determining the digital sum of said first and second digital numbers.
Government Interests
The invention described herein may be manufactured, used, and licensed by or for the Government for governmental purposes without the payment to us of any royalties thereon.
US Referenced Citations (3)