EasyManua.ls Logo

Texas Instruments C28 Series - Multiplication of a Real Vector and a Real Vector

Texas Instruments C28 Series
76 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Function Descriptions
3.33 Multiplication of a Real Vector and a Real Vector
Description:
This module multiplies two real vectors.
Y [i] = W [i] X[i]
Header File:
FPU.h
Declaration:
void mpy_SP_RVxRV_2(float32
*
y, const float32
*
w,
const float32
*
x, const Uint16 N)
Usage:
mpy_SP_RVxRV_2(y, w, x, N);
float32 *y
result real array
float32 *w
input real array 1
float32 *x
input real array 2
Uint16 N
length of w, x and y arrays
The type “complex_float” is defined as
typedef struct{
float32 dat[2];
}complex_float;
Element dat[0] is the real part, dat[1] is the imaginary part.
Alignment Requirements:
None
Notes:
1. N must be EVEN and a minimum of 4.
Example:
#include "FPU.h"
#define N 4
float32 w[N], x[N], y[N];
float32 c;
main()
{
mpy_SP_RVxRV_2(y, w, x, N);
}
Benchmark Information:
Number of Cycles = 3*N + 17 cycles (including the call and return)
Sep 10, 2012 67

Table of Contents

Other manuals for Texas Instruments C28 Series

Related product manuals