> 
> Wrap-around is very useful for digital signal processing.

Saturation is also very useful for DSPs.  

This is why for embedded C[1], they are adding types which the
user is able to decide which behavior they want instead of
just being undefined.

Let me make the point that signed overflow has been undefined since
before the C standard was finialized and in fact there is a nice
paper/book called "C Traps and Pitfalls[2]" which mentions all of this
back in 1988.

Thanks,
Andrew Pinski

[1] http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1021.pdf

[2] http://www.literateprogramming.com/ctraps.pdf

Reply via email to