Functions
DSPF_sp_dotprod
Collaboration diagram for DSPF_sp_dotprod:

Functions

float DSPF_sp_dotprod (const float *x, const float *y, const int nx)
 

Detailed Description

Function Documentation

◆ DSPF_sp_dotprod()

float DSPF_sp_dotprod ( const float *  x,
const float *  y,
const int  nx 
)

This routine calculates the dot product of 2 single-precision float vectors

   @param x   Pointer to array holding the first floating-point vector
   @param y   Pointer to array holding the second floating-point vector
   @param nx  Number of values in the x and y vectors
Algorithm:
DSPF_sp_dotprod_cn.c is the natural C equivalent of the optimized linear assembly code without restrictions. Note that the linear assembly code is optimized and restrictions may apply.
Assumptions:
The x and y arrays must be double-word aligned.
nx is a multple of 8 and >=8.
Implementation Notes:
Interruptibility: The code is interruptible.
Endian Support: The code supports both big and little endian modes.

Copyright 2022, Texas Instruments Incorporated