Patent ID: 6874007

Claim:
A method for rounding a first two's complement fixed point datum X represented by a sign bit s i , n first integer bits, and a first fractional bits, where X includes a precision portion including at least the n first integer bits and b first fractional bits, and a loss portion including (a-b) first fractional bits, the method comprising: comparing at least a portion of the a first fractional bits with a preselected threshold value; if the comparison returns a first result, adding the sign bit s i to the least significant bit of the precision portion of X; if the comparison returns a second result, adding the most significant bit of the loss portion of X to the least significant bit of the precision portion of X; and returning {circumflex over (X)} based on the addition calculation, wherein {circumflex over (X)} includes at least n second integer bits and b second fractional bits.