Hello Everyone,
I need to calculate the absolute value of a variable on the CLA under C code. Using assembly is as simple as using MABSF32, but with CLA-C I cannot write that. I'm using a 28035.
Do you have any idea on how to solve it?
Thanks,
Lucas
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.
Hello Everyone,
I need to calculate the absolute value of a variable on the CLA under C code. Using assembly is as simple as using MABSF32, but with CLA-C I cannot write that. I'm using a 28035.
Do you have any idea on how to solve it?
Thanks,
Lucas
Hi Lucas,
The intrinsic 'fabs()' is supported by the CLA-C compiler and will give you the floating point absolute.
Reference:
TMS320C28x Optimizing C/C++ Compiler v6.1 User's Guide
Find, "abs() and fabs() are implemented as intrinsics"