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.

maxvecDescription Returns the maximum element of a vector x.AlgorithmNot applicableOverflow Handling MethodologyNot applicableSpecial Requirements noneImplementation Notes noneExampleBenchmarksSee examples/maxval subdirectory(preliminary)Cycles † Core: nxOverhead: 3Code size(in bytes)20† 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).maxvecFunctionIndex and Value of the Maximum Element of a Vectorvoid maxvec (DATA *x, ushort nx, DATA *r_val, DATA *r_idx)(defined in maxvec.asm)Argumentsx[nx]r_valr_idxPointer to input vector of size nx.maximum valueIndex for vector element with maximum valuenx Lenght of input data vector (nx 6)DescriptionAlgorithmThis function finds the index for vector element with maximum value. In caseof multiple maximum elements, r_idx contains the index of the first maximumelement found. r_val contains the maximum value.Not applicableOverflow Handling MethodologyNot applicableSpecial Requirements noneImplementation Notes noneExampleSee examples/maxvec subdirectoryFunction Descriptions4-71

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

Saved successfully!

Ooh no, something went wrong!