Hi,

If x is of (unsigned) integer type of size N then the C++ standard says 
that x << n and x >> n are undefined for n >= N. Is there by any chance a 
GNU extension that guarantees that at least x << N and x >> N are defined 
(and = 0)?

The reason this would be helpful for me is that I have some very low-
level time-critical code for which I would like to avoid having to treat 
n = N as a special case requiring a test and branch.

Thanks,



-- 
Lionel B
_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to