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 2 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.
@param r Pointer to output array of autocorrelation of length nr
@param x Pointer to input array of length nx+nr
Input data must be padded with nr consecutive zeros at the beginning
@param nx Length of autocorrelation vector
@param 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 2 and greater than or equal to 2
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.