EasyManua.ls Logo

Texas Instruments C28 Series

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.19 Addition (Element-Wise) of a Complex Scalar to a Complex Vector
Description:
This module adds a complex scalar element-wise to a complex vector.
Y
re
[i] = X
re
[i] + C
re
Y
im
[i] = X
im
[i] + C
im
Header File:
FPU.h
Declaration:
void add_SP_CSxCV(complex_float
*
y, const complex_float
*
x,
const complex_float c, const Uint16 N)
Usage:
add_SP_CSxCV(y, w, c, N);
complex_float *y
result complex array
complex_float *x
input complex array
complex_float c
input complex scalar
Uint16 N
length of x and y arrays
The inputs and return value are of type “complex_float” 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 at least 2
Example:
#include "FPU.h"
#define N 4
complex_float c, x[N], y[N];
main()
{
add_SP_CSxCV(y, x, c, N);
}
Benchmark Information:
Number of Cycles = 4*N + 18 cycles (including the call and return)
Sep 10, 2012 52

Table of Contents

Other manuals for Texas Instruments C28 Series

Related product manuals