DSPF_sp_autocor
[Correlation]

Collaboration diagram for DSPF_sp_autocor:


Detailed Description

void DSPF_sp_autocor (float *restrict r, float *restrict x, const int nx, const int nr)


Function Documentation

void DSPF_sp_autocor ( float *restrict  r,
float *restrict  x,
const int  nx,
const int  nr 
)

This routine performs the autocorrelation of the input array x. It is assumed that the length of the input array, x, is a multiple of 4 and the length of the output array, r, is a multiple of 4. It is assumed that input vector x is padded with nr no of zeros in the beginning.

Parameters:
r Pointer to output array of autocorrelation of length nr
x Pointer to input array of length nx+nr Input data must be padded with nr consecutive zeros at the beginning
nx Length of autocorrelation vector
nr Length of lags
Algorithm:
DSPF_sp_autocor_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:
nx is a multiple of 4 and greater than or equal to 4
nr is a multiple of 4 and greater than or equal to 4
nx is greater than or equal to nr
x is double-word aligned
Implementation Notes:
Interruptibility: The code is interruptible.
Endian Support: The code supports both big and little endian modes.


Copyright 2014, Texas Instruments Incorporated