If you want to express x*2^n for possibly-neg x in C, write x*(1<<n) rather than demanding nonstd compiler ext. http://lists.nongnu.org/archive/html/qemu-devel/2015-11/msg03800.html …
@ch3root They claimed they wanted x*2^n. Doing this for byte-swapping is nonsense; that should be done in unsigned arithmetic.
-
-
@RichFelker Given their further discussion of -fwrapv, I'm not sure what they really mean. -
@ch3root In any case, x*(1<<n) works for the exact ranges that "should work" if x<<n were defined arithmetically as x*2^n even for neg x.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.