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,
I am using the TMS320F28377D with compiler version v6.2.7.
In SPRU514G it says that fabs() is implemented as an intrinsics. However, it is also available in the run-time math library and declared in Math.h where other intrinsics are not declared anywhere else.
Looking at the disassembly output an intrinsic is clearly being used for this function, however I am not specifying this anywhere so how would I otherwise know that the intrinsic implementation is being used rather than the library function?
Thanks and regards,
Adam
Adam Ardron said:how would I otherwise know that the intrinsic implementation is being used rather than the library function?
You have already seen the only ways you can know. The manual mentions it. You can also see it by inspecting the assembly output.
Thanks and regards,
-George
Hi George,
Thanks for the reply. Can you point me to where it says this in the manual (and which manual)?
Thanks and regards,
Adam
I was partially incorrect. The C2000 compiler manual does say "the run-time library functions abs() and fabs() are implemented as intrinsics". I didn't notice until just now that it says this in the chapter about the CLA compiler, and not the general C2000 compiler. Even so, fabs is implemented as an instrinsic for C2000.
Thanks and regards,
-George