Claims
- 1. A method for rounding a first two's complement fixed point datum, X, having an integer part of n bits, a fractional part of a bits the integer part, and sign bit, si, to a second two's complement fixed point datum, {circumflex over (X)}, having a fractional part of b bits following the radix point, where a and b are representative of the respective precisions of X and {circumflex over (X)}, and where a>b, comprising:
a. evaluating the fractional part of X and defining y as the most significant bit (MSB) of the a bits; b. if the first bit following the radix point of X is equal to a “1” bit trailed by (a−1) “0” bits, then defining {circumflex over (X)} substantially according to the equation: {circumflex over (X)}=n+si and otherwise, defining {circumflex over (X)} substantially according to the equation: {circumflex over (X)}=n+y
- 2. The method of claim 1, wherein the occurrence of positive numbers and negative numbers in a plurality of the datum, X, is substantially equiprobable.
- 3. A computer program product recorded on a computer readable medium for rounding a first two's complement fixed point datum, X, having an integer part of n bits, a fractional part of a bits the integer part, and sign bit, si, to a second two's complement fixed point datum, {circumflex over (X)}, having a fractional part of b bits following the radix point, where a and b are representative of the respective precisions of X and {circumflex over (X)}, and where a>b, comprising:
a. computer readable program code which evaluates the fractional part of X and defining y as the most significant bit (MSB) of the a bits; b. computer readable program code which, if the first bit following the radix point of X is equal to a “1” bit trailed by (a−1) “0” bits, then defines {circumflex over (X)} substantially according to the equation: {circumflex over (X)}=n+si and computer readable program code which otherwise defines X substantially according to the equation: {circumflex over (X)}=n+y
- 4. The computer program product of claim 3, wherein the occurrence of positive numbers and negative numbers in a plurality of the datum, X, is substantially equiprobable.
CROSS-REFERENCE TO RELATED APPLICATION(S)
[0001] The present application is a divisional application of, and claims priority to and the benefit of, pending U.S. patent application Ser. No. 09/735,170 filed Dec. 11, 2000 which, in turn, claims priority to and the benefit of U.S. Provisional Patent Application Serial No. 60/170,156, filed Dec. 10, 1999.
Provisional Applications (1)
|
Number |
Date |
Country |
|
60170156 |
Dec 1999 |
US |
Divisions (1)
|
Number |
Date |
Country |
Parent |
09735170 |
Dec 2000 |
US |
Child |
10672187 |
Sep 2003 |
US |