IP Library Granted Patent US 7,165,086
Granted Patent B2
US 7,165,086 · App. 10/414,842 · Granted Jan 16, 2007

System, method, and apparatus for division coupled with rounding of signed binary numbers

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 7,165,086
App. No.
10/414,842
Granted
Jan 16, 2007
Kind
B2
Abstract

A system, method, and apparatus for efficient rounding of signed numbers is presented herein. If the divisor is positive, the dividend is added to one half of the magnitude of the divisor. If the divisor is negative, the complement of the dividend is added to one half of the magnitude of the divisor. If the dividend is negative, and the divisor is also negative, one is added to the sum of the inverted dividend and one-half of the magnitude of the divisor. If the dividend is negative and the divisor is positive, one is subtracted from the sum of the dividend and one-half the magnitude of the divisor. The result is then right shifted x times. If the signs of the divisor and dividend are different, a most-significant-bit(sign-bit) of the result is shifted in as the most significant bit during each right shift. Otherwise, a “0” is shifted in.

Claims (30)

1. A circuit for dividing a dividend by a divisor, wherein the magnitude of the divisor is an integer power of two, said circuit comprising:

a first switch for selecting the dividend or the compliment of the dividend;

a second switch for selecting one half of the magnitude of the divisor or one half of the magnitude of the divisor minus one;

an adder for adding the selection of the first switch and the selection of the second switch and outputting a sum; and

a shift register for right shifting the sum from the adder the integer power of two times.

2. The circuit of claim 1 , wherein the first switch selects the dividend if the sign bit of the divisor is zero and selects the compliment of the dividend if the sign bit of the divisor is one.

3. The circuit of claim 1 , further comprising:

an exclusive OR gate for comparing the sign of the divisor and the sign of the dividend; and

an AND gate for providing the product of an output of the exclusive-OR gate and a most significant bit of the sum.

4. A circuit for dividing a dividend by a divisor, wherein the magnitude of the divisor is an integer power of two, said circuit comprising:

a first switch for receiving the dividend and the compliment of the dividend;

a second switch for receiving one half of the magnitude of the divisor and one half of the magnitude of the divisor minus one;

an adder connected to the first switch and the second switch; and

a shift register connected to the adder.

5. The circuit of claim 4 , wherein the first switch receives the sign bit of the divisor and selects the dividend if the sign bit of the divisor is zero and selects the compliment of the dividend if the sign bit of the divisor is one.

6. The circuit of claim 4 , further comprising an exclusive OR gate connected to the shift register.

7. An encoder for encoding data, said encoder comprising:

a discrete cosine transformation engine for transforming the data to the frequency domain;

a quantizer for quantizing the data in the frequency domain; and

memory for storing a plurality of instructions for dividing a dividend by a divisor, wherein the magnitude of the divisor is an integer power of two, the plurality of instructions further comprising:

adding the dividend to one half of the magnitude of the divisor, wherein the divisor is positive;

adding a compliment of the dividend to one half of the magnitude of the divisor, wherein the divisor is negative, thereby resulting in a sum; and

right-shifting the sum the integer number of times.

8. An encoder for encoding data, said encoder comprising:

a discrete cosine transformation engine for transforming the data to the frequency domain;

a quantizer for quantizing the data in the frequency domain, the quantizer further comprising a circuit for dividing a dividend by a divisor, wherein the magnitude of the divisor is an integer power of two, the circuit comprising:

a first switch for selecting the dividend or the compliment of the dividend;

a second switch for selecting one half of the magnitude of the divisor or one half of the magnitude of the divisor minus one;

an adder for adding the selection of the first switch and the selection of the second switch and outputting the sum; and

a shift register for right shifting the sum from the adder the integer power of two times.

Assignments (3)
TERMINATION AND RELEASE OF SECURITY INTEREST IN PATENTS Recorded Feb 3, 2017
From: BANK OF AMERICA, N.A., AS COLLATERAL AGENT
To: BROADCOM CORPORATION
Reel/Frame 041712/0001 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 1, 2017
From: BROADCOM CORPORATION
To: AVAGO TECHNOLOGIES GENERAL IP (SINGAPORE) PTE. LTD.
Reel/Frame 041706/0001 →
PATENT SECURITY AGREEMENT Recorded Feb 11, 2016
From: BROADCOM CORPORATION
To: BANK OF AMERICA, N.A., AS COLLATERAL AGENT
Reel/Frame 037806/0001 →