Right-shifting an integer operand and rounding a fractional intermediate result to obtain a rounded integer result
AssigneeSamsung Electronics Co., Ltd.
InventorRoney S. Wong
Life of this patent
Estimating the term…
Loading patent…
AssigneeSamsung Electronics Co., Ltd.
InventorRoney S. Wong
Estimating the term…
A method and apparatus for right-shifting a signed or unsigned integer operand and rounding a fractional intermediate result towards or away from zero to obtain an integer result as prescribed by the MPEG standard in a single instruction cycle is disclosed. The apparatus includes a right-shifter for right-shifting the operand to obtain a fractional intermediate result that includes integer bits and fractional bits. The apparatus also includes a control circuit for generating an increment signal in response to a sign bit of the operand, the fractional bits, a mode signal indicative of whether the operand is signed or unsigned, and a round signal indicative of whether round towards zero or round away from zero is selected. The apparatus also includes an increment circuit for incrementing the integer bits and providing the incremented integer bits as the integer result when the increment signal has a first logical value, and for providing the integer bits as the integer result when the increment signal has a second logical value.
A method of operating a circuit to right-shift a signed integer operand in response to an integer N and obtain an integer result rounded towards zero, comprising:
A method of operating a circuit to right-shift an integer operand in response to an integer N and obtain an integer result rounded towards zero, comprising:
A method of operating a circuit to right-shift an unsigned integer operand in response to an integer N and obtain an integer result rounded away from zero, comprising:
A method of operating a circuit to right-shift a signed integer operand in response to an integer N and obtain an integer result rounded away from zero, comprising:
A method of operating a circuit to right-shift an integer operand consisting of M bits in response to an integer N and obtain an integer result rounded away from zero, comprising:
An apparatus for right-shifting a signed integer operand in response to an integer N and obtaining an integer result rounded towards zero, comprising:
An apparatus for right-shifting an integer operand in response to an integer N and obtaining an integer result rounded towards zero, comprising:
An apparatus for right-shifting an unsigned integer operand in response to an integer N and obtaining an integer result rounded away from zero, comprising:
An apparatus for right-shifting a signed integer operand in response to an integer N and obtaining an integer result rounded away from zero, comprising:
An apparatus for right-shifting an integer operand in response to an integer N and obtaining an integer result rounded away from zero, comprising:
An apparatus for right-shifting an M-bit integer operand in response to an integer N with greater than log.sub.2 (M) bit positions and obtaining a rounded integer result, comprising:
Dependencies are inferred from the claim text.