Functions
DSPF_sp_maxidx
Collaboration diagram for DSPF_sp_maxidx:

Functions

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

Detailed Description

Function Documentation

◆ DSPF_sp_maxidx()

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

This routine finds out the index of maximum number in the input array. This function returns the index of the greatest value.

   @param x   Pointer to input array.
   @param nx  Number of inputs in the input array.
Algorithm:
DSPF_sp_maxidx_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 >= 4.
Implementation Notes:
Interruptibility: The code is interruptible.
Endian Support: The code supports both big and little endian modes.

Copyright 2022, Texas Instruments Incorporated