AnsweredAssumed Answered

about sharc dsp ALU Saturate

Question asked by dfwgd on Aug 25, 2017
Latest reply on Sep 7, 2017 by Jithul_Janardhanan

I use VisualDSP 5.1.2, C language,adsp21488. i add two numbers using operator '+'(e.g A + B = C)  , when the numbers get bigger,the result overflowed, but i need saturation addition. i read the technical Doc. VisualDSP5.0 C/C++ Compiler Manual for SHARC® Processors, i found a key word 'fract' is using for saturation addition, but this tpye rang only [-1.0,1.0) .my numbers is far out of this range, is there any other way to fix this problem?

Outcomes