Array Access In Vector Sum By Stdw; Vector Addition - Texas Instruments TMS320C6000 Programmer's Manual

Hide thumbs Also See for TMS320C6000:
Table of Contents

Advertisement

Packed-Data Processing on the 'C64x
Figure 8–12. Array Access in Vector Sum by STDW
. . .
c[7]
Figure 8–13. Vector Addition
c_lo = _add2(b_lo, a_lo);
a_lo
b_lo
c_lo
8-20
c_hi
c[3]
c[3]
c[6]
c[5]
c[4]
This code now efficiently reads and writes large amounts of data. The next step
is to find a method to quickly add them. The _add2() intrinsic provides just that:
It adds corresponding packed elements in two different words, producing two
packed sums. It provides exactly what is needed, a vector addition.
Figure 8–13 illustrates.
a[1]
+
b[1]
c[1] = b[1] + a[1]
So, putting in _add2() to perform the additions provides the complete code
shown in Example 8–6.
c[2]
_itod()
intrinsic
32 bits
c[2]
c[1]
64 bits
c[3]
c[2]
a[0]
+
b[0]
c[0] = b[0] + a[0]
c_lo
c[1]
c[0]
32 bits
c[0]
c[1]
c[0]
16 bits

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

Subscribe to Our Youtube Channel

Table of Contents