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.

TMS570LC4357: What is the rationale behind ulPortCountLeadingZeros when __clz exists?

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Why is the FreeRTOS port generated by HALCoGen adding a function ulPortCountLeadingZeros, that is implemtened in assembler, while the compiler/device combination supports __clz()?

I assume that the device supports __clz() as the compiler defines __ARM_FEATURE_CLZ when passing --silicon_version=7R5.