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.

[参考译文] TMS320F2800132:有关内在函数运算符的问题

Guru**** 2583665 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1384161/tms320f2800132-question-about-intrinsics-operators

器件型号:TMS320F2800132

工具与软件:

您好!

根据使用指南的编译器、可以使用不同的内在函数运算符。

我想使用 定义如下的___ max 和__ min:

int _max(int dst , int src );

int _min(int dst , int src );

是否可以将其用于无符号16位整数?

此致。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    [quote userid="166470" url="~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1384161/tms320f2800132-question-about-intrinsics-operators 是否可以将它用于无符号16位整数?

    否  编译器使用实现了这些内在函数 最大值 最小 学习指令。  CPU 手册中这些指令的文档 清楚地说明了操作数的签名。

    谢谢。此致、

    -George.

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

    好的、感谢您快速而清晰的回答。

    此致。