This is the mail archive of the gcc-patches@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: [PATCH] Document arithmetic overflow semantics


> Suppose we denote the three variants of "+" as follows:
> 
>       +undef          undefined behaviour on overflow
>       +wrap           wraps on overflow
>       +trap           traps on overflow

I still don't see how +wrap differs from an unsigned addition, so it seems
simply confusing to have it around explicitly.


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