Tool/software: Code Composer Studio
Originally posted in error for different DSP
I am trying to clarify behaviour in casting from float to a short integer in the event that output data exceeds +/-32767.
I can see compiler is calling function F$$FTOI followed by SSBX SXM
What I have been unable to find is documentation on either of these functions..
It appears that data that exceeds short integer range may be clipped which would be great if I knew for sure it will always happen.
Original C code is equivalent to....
function doit (const float value)
short output
output= (short) ( value * 32768.0F);
Any ideas ?
Glen Wardrop