发明名称 Right-shifting an integer operand and rounding a fractional intermediate result to obtain a rounded integer result
摘要 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.
申请公布号 US5930159(A) 申请公布日期 1999.07.27
申请号 US19960731652 申请日期 1996.10.17
申请人 SAMSUNG ELECTRONICS CO., LTD 发明人 WONG, RONEY S.
分类号 G06F7/48;G06F5/01;(IPC1-7):G06F7/38;G06F7/00 主分类号 G06F7/48
代理机构 代理人
主权项
地址