Claims
- 1. An apparatus for parallel processing a signed value to form an absolute value comprising:
- a programmed computing device for:
- performing an arithmetic shift right of N-1 bits on the signed value of N bits to form a bit mask;
- performing an exclusive-OR logical operation with the signed value of N bits and said bit mask to form a result; and
- subtracting said bit mask from said result of said exclusive-OR logical operation to form the absolute value of the signed value of N bits.
- 2. A computer system for processing a signed value to form an absolute value comprising:
- means for performing an arithmetic shift right of N-1 bits on the signed value of N bits to form a bit mask;
- means for performing an exclusive-OR logical operation with the signed value of N bits and said bit mask to form a result; and
- means for subtracting said bit mask from said result of said exclusive-OR logical operation to form the absolute value of the signed value of N bits.
- 3. An article of manufacture, comprising:
- a computer usable medium having a computer readable program code means embodied therein for causing a computer system to form an absolute value from a signed value, the article of manufacture comprising:
- computer-readable program means for performing an arithmetic shift right of N-1 bits on the signed value of N bits to form a bit mask;
- computer-readable program means for performing an exclusive-OR logical operation with the signed value of N bits and said bit mask to form a result; and
- computer-readable program means for subtracting said bit mask from said result of said exclusive-OR logical operation to form the absolute value of the signed value of N bits.
RELATED APPLICATION DATA
This application is related to co-pending application Ser. No. 08/880,626, filed Jun. 23, 1997, and Entitled "METHOD AND APPARATUS FOR DIRECTING A PARALLEL PROCESSING COMPUTING DEVICE TO FORM AN ABSOLUTE VALUE OF A SIGNED VALUE", by inventor Vladimir Volkonsky, assignor to Sun Microsystems, a Delaware Corporation.
US Referenced Citations (8)
Non-Patent Literature Citations (1)
Entry |
Sun Microsystems "The UltraSPARC Processor--Technology White Paper, The UltraSPARC Architecture" Nov. 14, 1995. |