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.

TMS320F280025: How to use "Round" related instructions in FPU during C programming

Part Number: TMS320F280025


Hello Champs,

If we define a variable named "x" in "int" format and another variable "y" in "float" format, when we write the code "y = x" in C, after compiling we can find that the "F32TOI16" instruction is used in the generated ".asm" file.

But if we need to generate  "F32TOI16R" instruction in ".asm" file, how should we write code in C? 

Would you please kindly help? Thanks!

Best Regards,

Linda