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.

[参考译文] F29H85X-EVM SOM:该芯片是否支持硬件前导零计算?

Guru**** 2478765 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1466025/f29h85x-som-evm-does-the-chip-support-hardware-leading-zero-calculation

器件型号:F29H85X-EVM SOM

工具与软件:

您好!

我想知道  无论硬件是否受支持、都要计算前导零。

此致、

Zihao

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Zihao:

    是的 C29CPU 在硬件中支持这一点:此编译器内在函数计算前导零: unsigned int _builtin_c29_i32_clzers_d(unsigned int ui0)

    谢谢

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    上述内在函数的示例如下:  

    leadingzeroes =__ builtin_c29_i32_clzers_d (0x4);

    在上述情况下、leadingzeroes 变量值预计为29。
    谢谢