Tool/software:
Hi,
I want to know that calculate leading zeros whether the hardware is supported.
Best regards,
Zihao
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.
Tool/software:
Hi,
I want to know that calculate leading zeros whether the hardware is supported.
Best regards,
Zihao
Hi Zihao,
Yes C29CPU supports this in hardware : This compiler intrinsic counts leading zeros : unsigned int __builtin_c29_i32_clzeros_d(unsigned int ui0)
Thanks
Example for the above intrinsic is as below :