autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Autoconf manual's coverage of signed integer overflow & portability


From: Andrew Pinski
Subject: Re: Autoconf manual's coverage of signed integer overflow & portability
Date: Wed, 3 Jan 2007 00:09:03 -0500 (EST)

> 
> 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

[Prev in Thread] Current Thread [Next in Thread]