quick quiz! which are incorrect and why cc @spun_offpic.twitter.com/swiTYVVMmb
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
@spun_off Mine is the only one where the compiler can legitimately assume rules of pointer arithmetic hold (because it's ptr arith.).
@spun_off The other forms all do the arithmetic as a uint type where any operation is well-defined. Final ptr may point to different object.
@spun_off In this specific case, the offset is bounded [0,7] and the compiler can deduce that it's still in the same object, tho.
@RichFelker Might something along the lines of p += 7 & - ((uintptr_t)p & 7) also satisfy your esthetic sense? That form is workable.
@spun_off But it simplifies to the same thing and it's more redundant...
@RichFelker I see (and I was going to point out that yours assumed a char* pointer or to other type of size 1)
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.