Invention Grant
US08972472B2 Apparatus and methods for hardware-efficient unbiased rounding 有权
用于硬件高效无偏差四舍五入的装置和方法

Apparatus and methods for hardware-efficient unbiased rounding
Abstract:
A system and method for unbiased rounding away from, or toward, zero by truncating N bits from a M bit input number to provide a M−N bit number, and adding the equivalent value of ‘½’ to the M−N bit number unless the input number is negative, or positive, respectively, and the N truncated bits represent exactly ½. The method for rounding away from zero may include outputting a (M−N) bit truncated number if the M-bit input number is negative and the sequence of N truncated bits comprises a most significant bit of 1, followed by zeros; and otherwise, computing and outputting a sum of (a) a number that has an equivalent value of one followed by (N−1) replicas of zero, the one provided by applying a logical operation on the most significant bit of the sequence of truncated bits and (b) the (M−N) bit truncated number.
Public/Granted literature
Information query
Patent Agency Ranking
0/0