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.

[参考译文] TMS320F280049C:CLA 数学 ceil 和 floor

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1423133/tms320f280049c-cla-math-ceil-and-floor

器件型号:TMS320F280049C

工具与软件:

CLA_MATH_LIB_UG.pdf 的修订历史记录显示、ceil 和 floor 函数已添加到 V4.03.02.00中。

我似乎无法找到它们或知道如何调用它们。 如何调用这些函数? 它们的名称是否不同?

#10461-D 调用 C28函数"_ceil"无效

#10461-D 调用 C28函数"_floor"无效

#225-D 函数"ceil"被隐式声明

#225-D 函数"floor"被隐式声明

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

    您好!

    很抱歉我的答复被推迟。 floor 和 ceil 函数定义可在 CLAmath.h 文件中找到、它们是 cla_floor (float32_t val)和 cla_ceil (float32_t val)

    确保您在.cla 文件中包含 CLAmath.h 头文件、以便能够从 CLA 任务调用这些函数。  

    此致、

    Delaney