Hello all,
I'm working on a logic where I would like to use of conditional operator for saturation part as the below document suggests C2000 uses a special type of instruction in using a conditional operations for saturation.
C2000 Performance Tips and Tricks
Images of the above link for usage of Conditional operator is as shown below.
However, though I use the conditional operator, I don't see any change in the assembly as those images are attached below.
Also, I found the below link which suggests using long __lmax(long dst, long src); helps in executing saturation example with instructions MAXL ACC, src.hi32 MAXCUL P, src.lo32 & therefore I feel there will be reduction in the clock cycles.
TMS320C28x Optimizing C/C++ Compiler v18.1.0.LTS User's Guide (Rev. P)
Here Comes the cquestion, I I'm using the long __lmax(long dst, long src); it is throwing the error. Kindly help in using the appropriate method in using the instruction long __lmax(long dst, long src);
Thanks in advance,
Raju.