Texas Instruments TMS320C6000 Programmer's Manual page 88

Hide thumbs Also See for TMS320C6000:
Table of Contents

Advertisement

Table 3–6. TMS320C6000 C/C++ Compiler Intrinsics (Continued)
C Compiler Intrinsic
int _sub2(int src1 , int src2 );
int _sub4 (int src1 , int src2 );
int _subabs4 (int src1 , int src2 );
uint _swap4 (uint src2);
uint _unpkhu4 (uint src2);
uint _unpklu4 (uint src2);
uint _xpnd2 (uint src2);
uint _xpnd4 (uint src2);
Note:
Instructions not specified with a device apply to all 'C6000 devices.
Assembly
Description
Instruction
SUB2
Subtracts the upper and lower halves of
src2 from the upper and lower halves of
src1, and returns the result. Any borrowing
from the lower half subtract does not affect
the upper half subtract.
SUB4
Performs 2s–complement subtraction be-
tween pairs of packed 8–bit values.
SUBABS4
Calculates the absolute value of the differ-
ences for each pair of packed 8–bit values.
SWAP4
Exchanges pairs of bytes (an endian
swap) within each 16–bit value.
UNPKHU4
Unpacks the two high unsigned 8–bit val-
ues into unsigned packed 16–bit values.
UNPKLU4
Unpacks the two low unsigned 8–bit val-
ues into unsigned packed 16–bit values.
XPND2
Bits 1 and 0 of src are replicated to the up-
per and lower halfwords of the result, re-
spectively.
XPND4
Bits 3 through 0 are replicated to bytes 3
through 0 of the result.
Refining C/C++ Code
Optimizing C/C++ Code
Device
'C64x
'C64x
'C64x
'C64x
'C64x
'C64x
'C64x
3-23

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the TMS320C6000 and is the answer not in the manual?

Questions and answers

Table of Contents