[cfe-dev] [RFC] Introduce overflow builtins

Xi Wang xi.wang at gmail.com
Tue Mar 27 23:01:14 PDT 2012


On Mar 28, 2012, at 1:51 AM, Dave Zarzycki wrote:
> 
> There is precedence for the opposite order. For example, the  __sync_*() APIs put the pointer first: T*, T, ...
> 
> This makes sense too. One shouldn't have to reorder "x = y + z" to "y, z, &x". That'll just confuse people in the long run.

Hah, the signature of __overflow_* was actually copied from __sync_bool_compare_and_swap. ;-)

- xi





More information about the cfe-dev mailing list