21.07.2015 Views

"TMS320C55x DSP Library DSPLIB Programmer's Reference"

"TMS320C55x DSP Library DSPLIB Programmer's Reference"

"TMS320C55x DSP Library DSPLIB Programmer's Reference"

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

maxidx34maxidx34FunctionIndex of the Maximum Element of a Vector ≤ 34short r = maxidx34 (DATA *x, ushort nx)(defined in maxidx34.asm)Argumentsx[nx]rPointer to input vector of size nx.Index for vector element with maximum value.nx Lenght of input data vector (nx ≤ 34).DescriptionAlgorithmReturns the index of the maximum element of a vector x. In case of multiplemaximum elements, r contains the index of the first maximum element found.Not applicableOverflow Handling MethodologyNot applicableSpecial Requirements Size of the vector, nx ≤ 34Implementation Notes noneExampleBenchmarksSee examples/maxidx34 subdirectory(preliminary)Cycles † Core: nx/2Overhead: 42Code size(in bytes)26† Assumes all data is in on-chip dual-access RAM and that there is no bus conflict due to twiddletable reads and instruction fetches (provided linker command file reflects those conditions).maxvalFunctionMaximum Value of a Vectorshort r = maxval (DATA *x, ushort nx)(defined in maxval.asm)Argumentsx[nx]rnxPointer to input vector of size nx.Maximum value of a vectorLength of input data vector4-70

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!