Arithmetic shifter that performs multiply/divide by two to the nth power for positive and negative N
Abstract
A method and apparatus in accordance with the present invention provides for multiplying and/or dividing an operand by 2 N using an arithmetic shifter where N is an integer represented in 2's complement form. The invention multiplies an operand by 2 N by left-shifting the operand by N bit positions when N is positive and right-shifting the operand by the absolute value of N bit positions when N is negative, and divides an operand by 2 N by right-shifting the operand by N bit positions when N is positive and left-shifting the operand by the absolute value of N bit positions when N is negative.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 7 · Forward citations: 29.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method of operating a circuit to multiply an operand by 2 N , where N is an integer represented in 2's complement form, and an absolute value of N is within a maximum shift count of an arithmetic left/right shifter, the method comprising the steps of: left-shifting the operand by N bit positions when N is a positive; and right-shifting the operand by the absolute value of N bit positions when N is negative.
- Claim 2Depends on #1
The method of claim 1, including: coupling a sign bit of N to a shift direction input of the arithmetic left/right shifter; coupling low-order bits of the absolute value of N to a shift count input of the arithmetic left/right shifter; coupling the operand to an operand input of the arithmetic left/right shifter; and shifting the operand in the arithmetic left/right shifter in a direction defined by the sign b
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 29 total)
References Cited — Backward Prior Art (7)
Non-Patent Literature (4)
- "Computer Arithmetic Systems: Algorithms, Architecture and Implementations" by A. Omondi, published by Prentice Hall International (UK) Limited, 1994, pp. 505-513.
- "Programming The 80386" by Crawford et al., published by SYBEX Inc., 1987, pp. 241-244 and 405-406.
- Computer Arithmetic Systems: Algorithms, Architecture and Implementations by A. Omondi, published by Prentice Hall International (UK) Limited, 1994, pp. 505 513.
- Programming The 80386 by Crawford et al., published by SYBEX Inc., 1987, pp. 241 244 and 405 406.