Other Parts Discussed in Thread: CCSTUDIO
I am working with the 6720 processor. In the cgtools folder of the C6000 directory of CC3.3 I was trying to use the truncf() function seen in the mathf.h include file. I am using the rts6700.lib. Is this a valid function for this processor? Am I using the correct library? When I simulated this, it worked okay. When I emulated it, it did not.
There is another function spint() which seems to work, but when simulated, it rounds up a note in the SPRU198I regarding the function states "Converts 32-bit float to 32-bit signed integer using the rounding mode set by the CSR register". What bit controls the rounding mode in the CSR register, I have looked in the SPRU733A and find no reference to a rounding bit.
Thanks for any help on this matter.