ComputingComputer EngineeringComputer ScienceAlgorithmsComputer ArchitectureNumber TheoryArithmetic FunctionsNumber-theoretic AlgorithmsApplications In Computational Number TheoryDivision AlgorithmsInteger MultiplicationLookup Table ArchitecturesLookup Table Design
By using a reciprocal approximation, integer division can be synthesized from a multiply followed by a shift. Without carefully selecting the reciprocal, however, the quotient obtained often suffers from off-by-one errors, requiring a correction step. The author describes the design decisions made when designing integer division for a new 64-b machine. The result is a fast and economical scheme for computing both unsigned and signed integer quotients which guarantees an exact answer without any correction. The reciprocal computation is fast enough, with one table lookup and five multiplies, so that this scheme is competitive with a dedicated divider, while requiring much less hardware specific to division. The real strength of the proposed method is division by a constant, which takes only a single multiply and shift, one operation on the machine considered. The analysis shows that the computed quotient is always exact: no adjustment or correction is necessary.< <ETX xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">></ETX>
10
Robert Alverson, David Callahan, Daniel Cummings et al. · 2014 · 649 citations
Robert Alverson, David Callahan, Daniel Cummings et al. · 1990 · 422 citations · Full text
Integer multiplication and division on the HP precision architecture
Daniel J. Magenheimer, Liz Peters, Karl Pettis et al. · ACM SIGPLAN Notices · 1987 · 39 citations