Functions
DSPF_sp_vecsum_sq
Collaboration diagram for DSPF_sp_vecsum_sq:

Functions

float DSPF_sp_vecsum_sq (const float *x, const int nx)
 

Detailed Description

Function Documentation

◆ DSPF_sp_vecsum_sq()

float DSPF_sp_vecsum_sq ( const float *  x,
const int  nx 
)

This routine performs a sum of squares of the elements of the array x and returns the sum.

   @param x  Pointer to input array.
   @param nx Number of elements in arrays.
Algorithm:
DSPF_sp_vecsum_sq_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:
Since loads of 8 floats beyond the array occur, a pad must be provided
The x array must be double-word aligned
Implementation Notes:
Interruptibility: The code is interruptible.
Endian Support: The code supports both big and little endian modes.

Copyright 2022, Texas Instruments Incorporated