AnsweredAssumed Answered

Saturation arithmetic

Question asked by davidpark on May 7, 2012
Latest reply on May 9, 2012 by CraigG

Hi 

I am reviewing with ADSP-BF506F.

 

In arithmetic

When the result of an operation exceeds the range, Do you have functions that it is to become saturated ?

 

For example, if the valid range of values is from -100 to 100, the following operations produce the following values

 

60 + 43 = 100

(60 + 43) − 150 = −50

43 − 150 = −100

60 + (43 − 150) = −40

10 × 11 = 100

99 × 99 = 100

30 × (5 − 1) = 100

30 × 5 − 30 × 1 = 70

Outcomes