Divide to integer
AssigneeInternational Business Machines Corporation
InventorRonald Morton Smith, Sr.
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorRonald Morton Smith, Sr.
Estimating the term…
A system and method for providing an interruptible remainder instruction that can produce a quotient as well as a remainder. Remainders are computed through an iterative procedure. This procedure is carried out in a computer system's hardware by following a series of steps, the series being interruptible at any point. Each step reduces the magnitude of the dividend until the final remainder can be obtained. In the intermediate steps, the sign of the new (smaller in magnitude) dividend is kept the same as the sign of the original dividend, and the value Ni (which can be considered part of the quotient) is rounded toward zero. Only in the last step must the sign of the operands be considered and directed rounding be performed. Throughout the remainder operation, the partial quotients can be saved so that upon completion, not only has the remainder been computed, but so has the quotient.
In a computer system having a floating point processor, a method for computing an integer quotient and a remainder resulting from the division of a floating point dividend by a divisor, said integer quotient representing the integer value nearest an infinitely exact quotient of said dividend divided by said divisor, said dividend having a number of original dividend digits, comprising the steps of:
In a computer system having a floating point processor, a method for computing an integer quotient and a remainder resulting from the division of a floating point dividend by a floating point divisor, said integer quotient representing the integer value nearest an infinitely exact quotient of said dividend divided by said divisor, said remainder representing the difference between said dividend and a product formed between said integer quotient and said divisor, said dividend and said divisor each represented in a floating point format having a significand of a predetermined number of bits, said integer quotient represented by one or more partial fractions each having a maximum number of bits equal to a predetermined partial-quotient fraction number having a value not greater than said predetermined number of bits of said significand, said method comprising the steps of:
Dependencies are inferred from the claim text.