This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Paul Eggert <eggert@CS.UCLA.EDU> writes:

| Here are further patches I checked into the Autoconf documentation to
| reflect today's comments (some of which I received privately).  Thanks
| to all of you.  The trickiest bit was documenting one simple way to
| reliably detect overflow without converting to unsigned and back.
| (At least, I hope it's reliable....)

I have noted earlier that the GNU implementation of C++ standard's 
std::numeric_limits<T>::is_modulo has been reporting "true" for over 
half a decade now, when T is a signed integral type.  I don't know where
that fits in the equation but surely it tells people that they can
count on wrapping for signed integer arithmetic.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]