Function Descriptions
3.31 Multiplication of a Real Scalar, a Real Vector, and another Real
Vector
Description:
This module multiplies a real scalar with a real vector. and another real vector.
Y [i] = C ∗ W [i] ∗ X[i]
Header File:
FPU.h
Declaration:
void mpy_SP_RSxRVxRV_2(float32
*
y, const float32
*
w,
const float32
*
x, const float32 c, const Uint16 N)
Usage:
mpy_SP_RSxRVxRV_2(y, w, x, c, N);
float32 *y
result real array
float32 *w
input real array 1
float32 *x
input real array 2
float32 c
input real scalar
Uint16 N
length of w, x and y arrays
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_RSxRVxRV_2(y, w, x, c, N);
}
Benchmark Information:
Number of Cycles = 3*N + 22 cycles (including the call and return)
Sep 10, 2012 65