Method and apparatus for performining floating point division
First Claim
1. In a data processing system including a memory and having a multiplying circuit connected to an adding circuit, said adding circuit connected to a rounding circuit, and a control circuit connected to the multiplying, adding and rounding circuits, a method for performing floating point division of a dividend by a divisor for producing a quotient having a mantissa of N bits, said method comprising said steps of:
- (1) accessing an initial reciprocal guess of a divisor from a table of divisor reciprocals in said memory by said control circuit;
(2) computing an initial guess of said quotient by multiplying said reciprocal guess by the dividend in said multiplying circuit and computing a corresponding remainder guess from said initial reciprocal guess by multiplying said divisor by said quotient guess in said multiplying circuit producing a first product followed by adding said dividend to said first product in said connected adding circuit producing a first sum followed by rounding said first sum in said connected rounding circuit, wherein said multiplying, adding and rounding circuits are regulated by said control circuit;
(3) computing an error parameter and iteratively computing a current reciprocal guess, a current quotient guess and a current remainder guess from said error parameter and said initial reciprocal guess, initial quotient guess and initial remainder guess wherein for each current guess computation a multiplying operation is performed in said multiplying circuit followed by an adding operation in said adding circuit followed by a rounding operation in said rounding circuit;
(4) repeating step 3 until said precision of said reciprocal guess and said quotient guess exceeds N bits wherein for each current guess computation a multiplying operation is performed in said multiplying circuit followed by an adding operation in said adding circuit followed by a rounding operation in said rounding circuit; and
(5) computing a final quotient wherein a last current reciprocal guess is multiplied by a last remainder guess in said multiplying circuit providing a final product followed by adding a last current quotient guess to said final product in said adding circuit providing a final sum followed by rounding the final sum in said rounding circuit.
0 Assignments
0 Petitions
Accused Products
Abstract
A method for performing floating point division is provided for producing a quotient having a mantissa of n bits. The method consists of the steps of accessing an initial guess of a reciprocal of the divisor from a table of divisor reciprocals, computing an initial estimate the quotient in a corresponding estimate from the initial estimate of the reciprocal, increasing the precision of the mantissa of the reciprocal estimate, quotient estimate, and remainder estimate by computing an error parameter and iteratively computing a current reciprocal estimate, a current quotient estimate and a current remainder estimate from the error parameter and the latest reciprocal estimate, quotient estimate and remainder estimates. Also, the step of increasing the precision is repeated until the quotient estimate and reciprocal estimate exceed n bits. Lastly, the final quotient is computed from the last current quotient estimate plus the last current reciprocal estimate times the last current remainder estimate. A floating point apparatus is also provided that implements the floating point division method. The application of this method and apparatus provide a quotient result that is correctly rounded without conditionally testing the magnitude of the quotient.
96 Citations
28 Claims
-
1. In a data processing system including a memory and having a multiplying circuit connected to an adding circuit, said adding circuit connected to a rounding circuit, and a control circuit connected to the multiplying, adding and rounding circuits, a method for performing floating point division of a dividend by a divisor for producing a quotient having a mantissa of N bits, said method comprising said steps of:
-
(1) accessing an initial reciprocal guess of a divisor from a table of divisor reciprocals in said memory by said control circuit; (2) computing an initial guess of said quotient by multiplying said reciprocal guess by the dividend in said multiplying circuit and computing a corresponding remainder guess from said initial reciprocal guess by multiplying said divisor by said quotient guess in said multiplying circuit producing a first product followed by adding said dividend to said first product in said connected adding circuit producing a first sum followed by rounding said first sum in said connected rounding circuit, wherein said multiplying, adding and rounding circuits are regulated by said control circuit; (3) computing an error parameter and iteratively computing a current reciprocal guess, a current quotient guess and a current remainder guess from said error parameter and said initial reciprocal guess, initial quotient guess and initial remainder guess wherein for each current guess computation a multiplying operation is performed in said multiplying circuit followed by an adding operation in said adding circuit followed by a rounding operation in said rounding circuit; (4) repeating step 3 until said precision of said reciprocal guess and said quotient guess exceeds N bits wherein for each current guess computation a multiplying operation is performed in said multiplying circuit followed by an adding operation in said adding circuit followed by a rounding operation in said rounding circuit; and (5) computing a final quotient wherein a last current reciprocal guess is multiplied by a last remainder guess in said multiplying circuit providing a final product followed by adding a last current quotient guess to said final product in said adding circuit providing a final sum followed by rounding the final sum in said rounding circuit. - View Dependent Claims (2, 3)
-
-
4. In a data processing system including a memory and a multiplying circuit connected to an adding circuit and said adding circuit connected to a rounding circuit, the multiplying circuit, adding circuit and rounding circuit each connected to a control circuit, a method for performing floating point division of a dividend by a divisor for producing a quotient having a mantissa of N bits, said method comprising said steps of:
-
(1) accessing an initial reciprocal guess of a divisor from a value from said memory; (2) computing an initial guess of said quotient from said initial guess of said reciprocal by multiplying said reciprocal guess by the dividend in said multiplying circuit as regulated by the control circuit; (3) computing an error parameter and computing a current guess of said reciprocal from said error parameter and said initial reciprocal guess wherein for each of said error parameter and current reciprocal guess computation, a multiplying operation is performed in said multiplying circuit followed by an adding operation in said adding circuit followed by a rounding operation in said rounding circuit all regulated by the control circuit; (4) computing a current quotient guess from said current guess of said reciprocal wherein for the current quotient guess computation a multiplying operation is performed in said multiplying circuit followed by an adding operation in said adding circuit followed by a rounding operation in said rounding circuit; (5) computing a current remainder guess from said current reciprocal guess and said current quotient guess wherein for the current remainder guess computation a multiplying operation is performed in said multiplying circuit followed by an adding operation in said adding circuit followed by a rounding operation in said rounding circuit; (6) repeating steps 3, 4 and 5 until said precision of said reciprocal guess and said quotient guess exceeds N bits wherein for each current guess computation a multiplying operation is performed in said multiplying circuit followed by an adding operation in said adding circuit followed by a rounding operation in said rounding circuit; (7) computing a final quotient wherein a last current reciprocal guess is multiplied by a last remainder guess in said multiplying circuit to provide a final product followed by adding a last current quotient guess to said final product in said adding circuit to provide a final sum followed by rounding the final sum in said rounding circuit. - View Dependent Claims (5, 6, 7, 8, 9)
-
-
10. In a data processing system including a memory and a multiplying circuit connected to an adding circuit and said adding circuit connected to a rounding circuit circuit, said multiplying, adding and rounding circuits each connected to a control circuit, a method for performing floating point division of a dividend by a divisor for producing a quotient having a rounded mantissa of N bit precision, said method comprising said steps of:
-
(1) accessing an initial reciprocal guess of a divisor from a value from said memory; (2) computing an initial guess of said quotient from said initial guess of said reciprocal by multiplying said reciprocal guess by the dividend in said multiplying circuit and followed by rounding by a round-to-nearest operation in said rounding circuit, wherein said multiplying and rounding circuits are regulated by said control circuit; (3) computing an error parameter and computing a current guess of said reciprocal from said error parameter and said initial guess of said reciprocal wherein for each of said error parameter and current reciprocal guess computations, a multiplying operation is performed in said multiplying circuit followed by an adding operation in said adding circuit followed by a round-to-nearest operation in said rounding circuit; (4) computing a current quotient guess from said current guess of said reciprocal wherein for said current quotient guess computation, a multiplying operation is performed in said multiplying circuit followed by an adding operation in said adding circuit followed by a round-to-nearest operation in said rounding circuit; (5) computing a remainder guess from said current reciprocal guess and said current quotient guess wherein for said remainder guess computation, a multiplying operation is performed in said multiplying circuit followed by an adding operation in said adding circuit followed by a round-to-nearest operation in said rounding circuit; (6) repeating steps 3, 4 and 5 until precision of said reciprocal guess and said quotient guess exceeds N bits wherein for each current guess computation a multiplying operation is performed in said multiplying circuit followed by an adding operation in said adding circuit followed by a rounding operation in said rounding circuit; and (7) computing a final quotient wherein a last current reciprocal guess is multiplied by a last remainder guess in said multiplying circuit providing a final product followed by adding a last current quotient guess to said final product in said adding circuit to provide a final sum followed by rounding by an operation other than a round-to-nearest operation in said rounding circuit. - View Dependent Claims (11, 12, 13)
-
-
14. In a data processing system an apparatus for performing floating point division of a dividend by a divisor for producing a quotient having a mantissa of N bits, said apparatus comprising:
-
a memory; a multiplying circuit; an adding circuit connected to said multiplying circuit; a rounding circuit connected to said adding circuit; a control circuit connected to said multiplying circuit, said adding circuit and said rounding circuit; means for accessing an initial reciprocal guess of said divisor from a table of divisor reciprocals in said memory; means for computing an initial guess of said quotient by multiplying said reciprocal guess by the dividend in said multiplying circuit and computing a corresponding remainder guess from said initial guess of said reciprocal by multiplying said divisor by said quotient guess in said multiplying circuit producing a first product followed by adding said dividend to said first product in said connected adding circuit producing a first sum followed by rounding said first sum in said connected rounding circuit, wherein said multiplying, adding and rounding circuits are regulated by said control circuit; means, connected to said multiplying circuit, said adding circuit, said rounding circuit and said control circuit, for computing an error parameter and iteratively computing a current reciprocal guess, a current quotient guess and a current remainder guess from said error parameter and said initial reciprocal guess, initial quotient guess and initial remainder guess until said precision of said reciprocal guess and said quotient guess exceeds N bits wherein for each error parameter and current guess computation a multiplying operation is performed in said multiplying means followed by an adding operation in said adding circuit followed by a rounding operation in said rounding circuit; means for computing a final quotient wherein a last current reciprocal guess is multiplied by a last remainder guess in said multiplying circuit providing a final product followed by adding a last current quotient guess to said final product in said adding circuit providing a final sum followed by rounding the final sum in said rounding circuit. - View Dependent Claims (15, 16)
-
-
17. In a data processing system an apparatus for performing floating point division of a dividend by a divisor for producing a quotient having a mantissa of N bits, said apparatus comprising:
-
a memory; a multiplying circuit; an adding circuit connected to said multiplying circuit; a rounding circuit connected to said adding circuit; a control circuit connected to said multiplying circuit, said adding circuit and said rounding circuit; means for accessing an initial reciprocal guess of said divisor from a value from said memory; means for computing an initial guess of said quotient from said initial reciprocal guess by multiplying said reciprocal guess by the dividend in said multiplying circuit as regulated by the control circuit; means, connected to said multiplying circuit, said adding circuit and said rounding circuit, for computing an error parameter and computing a current guess of said reciprocal from said error parameter and said initial guess of said reciprocal wherein for each of said error parameter and current reciprocal guess computation, a multiplying operation is performed in said multiplying circuit followed by an adding operation in said adding circuit followed by a rounding operation in said rounding circuit all regulated by the control circuit; means, connected to said multiplying circuit, said adding circuit, said rounding circuit and said control circuit, for computing a current quotient guess from said current guess of said reciprocal wherein for the current quotient guess computation a multiplying operation is performed in said multiplying circuit followed by an adding operation in said adding circuit followed by a rounding operation in said rounding circuit; means, connected to said multiplying circuit, said adding circuit, said rounding circuit and said control circuit, for computing a current remainder guess from said current reciprocal guess and said current quotient guess wherein for the current remainder guess computation a multiplying operation is performed in said multiplying circuit followed by an adding operation in said adding circuit followed by a rounding operation in said rounding circuit; means, connected to said multiplying circuit, said adding circuit, said rounding circuit and said control circuit, for increasing precision of said current reciprocal, quotient and remainder guesses until said precision of said reciprocal guess and said quotient guess exceeds N bits wherein for each current guess computation a multiplying operation is performed in said multiplying circuit followed by an adding operation in said adding circuit followed by a rounding operation in said rounding circuit; means, connected to said multiplying circuit, said adding circuit, said rounding circuit and said control circuit, for computing a final quotient wherein a last current reciprocal guess is multiplied by a last remainder guess in said multiplying circuit to provide a final product followed by adding a last current quotient guess to said final product in said adding circuit to provide a final sum followed by rounding the final sum in said rounding circuit. - View Dependent Claims (18, 19, 20, 21, 22)
-
-
23. In a data processing system an apparatus for performing floating point division of a dividend by a divisor for producing a quotient having a rounded mantissa of N bit precision, said apparatus comprising:
-
a memory; a multiplying circuit; an adding circuit connected to said multiplying circuit; a rounding circuit connected to said adding circuit; a control circuit connected to said multiplying circuit, said adding circuit and said rounding circuit; means for accessing an initial reciprocal guess of said divisor from a value from said memory; means for computing an initial guess of said quotient from said initial guess of said reciprocal by multiplying said reciprocal guess by the dividend in said multiplying circuit and followed by rounding by a round-to-nearest operation in said rounding circuit, wherein said multiplying and rounding circuits are regulated by said control circuit; means, connected to said multiplying circuit, said adding circuit, said rounding circuit and said control circuit, for computing an error parameter and computing a current guess of said reciprocal from said error parameter and said initial guess of said reciprocal wherein for each error parameter and current reciprocal guess computation, a multiplying operation is performed in said multiplying circuit followed by an adding operation in said adding circuit followed by a round-to-nearest operation in said rounding circuit and said multiplying, adding and rounding circuits are regulated by said control circuit; means, connected to said multiplying circuit, said adding circuit, said rounding circuit and said control circuit, for computing a current quotient guess from said current guess of said reciprocal wherein for said current quotient guess computation, a multiplying operation is performed followed by an adding operation followed by rounding by a round-to-nearest operation in said rounding circuit; means, connected to said multiplying circuit, said adding circuit, said rounding circuit and said control circuit, for computing a remainder guess from said current reciprocal guess and said current quotient guess wherein for said remainder guess computation, a multiplying operation is performed in said multiplying circuit followed by an adding operation in said adding circuit followed by a round-to-nearest operation in said rounding circuit; means for increasing precision of said current guesses of said reciprocal and quotient until said precision of said reciprocal guess and said quotient guess exceeds N bits wherein for each current guess computation a multiplying operation is performed in said multiplying circuit followed by an adding operation in said adding circuit followed by a rounding operation in said rounding circuit; and means for computing a final quotient wherein a last current reciprocal guess is multiplied by a last remainder guess in said multiplying circuit providing a final product followed by adding a last current quotient guess to said final product in said adding circuit to provide a final sum followed by rounding by an operation other than a round-to-nearest operation in said rounding circuit. - View Dependent Claims (24, 25, 26)
-
-
27. A data processing system for performing a division operation on a dividend and a divisor, said system comprising:
-
a memory; a multiplying circuit; an adding circuit connected to said multiplying circuit; a rounding circuit connected to said adding circuit; a control circuit connected to said memory, multiplying circuit, adding circuit and rounding circuit and including means for obtaining an estimate of a divisor reciprocal from said memory, means for controlling computing of a quotient estimate and remainder estimate, and means for controlling repetitively computing an error parameter and iteratively recomputing current quotient estimates and current remainder estimates from a current error parameter until a previously specified quotient bit precision has been obtained. - View Dependent Claims (28)
-
Specification