“Logical” arithmetic on computers with two's complement binary arithmetic
“Logical” arithmetic on computers with two's complement binary arithmetic
复制标题
计算机上的“逻辑”算术与二进制补码算术
DOI:
10.1145/363397.363562
复制
发表时间:
1968
期刊:
影响因子:
--
通讯作者:
J. Ehrman
中科院分区:
文献类型:
--
作者:
J. Ehrman
s i g n e d word in a binary computer as having positive ;weight: an additional factor of two in the allowed range of some numbers may be sufficient to permit the solution of :problems not easily handled otherwise, or the natural representa t ion of certain. types of data may take this }form. It is usually found that addition and subtraction of s u c h quantities are strMghtforward, while nmltiplieation and division appear to be diftieult. An approach sometimes taken• in these situations is to find an indirect way to p e r f o r m the desired processing, perhaps at the cost of w a s t i n g one or more bits per word; however, if the operands f i n d their naturM representation to be such that there are n o insignificant bits in a word, such schemes can become l e n g t h y and awkward. I t is the purpose of this paper to d e s c r i b e methods for performing multiplication and divis i o n directly with these "logical" quantities on machines with two's complement binary arithmetic, so that no re:. coding of the data is required. This may permit more efficient programming of algorithms for performing proeess: i n g such as multiple precision arithmetic [1], binary-todecimal conversion, or number theoretic eMeulations. In general, the algorithms require only that the machine's computed product of two N-bi t operands contain 2N significant, bits. On computers where the product eontMns 2N -1 bits, a simplified form of the algorithms may be used which Mlows the product of unsigned N-bit and