This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SK-TDA4VM: Use of compiler intrinsic for getting maximum value in a single vector

Part Number: SK-TDA4VM

Tool/software:

Hi

I am using the SDK version "ti-processor-sdk-rtos-j721e-evm-09_00_01_01\pdk_jacinto_09_00_01_04" where I have created a simple application to run in C7x DSP core which will perform some operations like min , max on a big chunk of unsigned 32 bit data in L2 Ram memory

The overall goal of the work is to make the simple application run more effieciently in the C7x core to replicate it for our requirement , I have almost covered some of the compiler intrinsic for performing remaining operations like addition , subtraction and multiplication. But when it comes to finding a single maximum value among a set of values for eg ( getting a maximum value among 16 32-bit  vector) I am not able to find an intrinsic for this.

To satisfy this operation , I referred some of the compiler intrinsic like 

extern uint16 __vmaxuw_vvv(uint16, uint16) , which is taking two vectors and getting maximum between each pair of values and not getting one among all 16 values

Is there any other way we can look into other intrinsic or any library available for C7x inorder to get one maximum among 16 32-bit values by passing only one vector as input ?


Thanks,
Madhu