daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. uint32_t x = 1;
  2. int32_t y = 1;
  3. x << -1; /* is undefined, so is y << -1 */
  4. x << 32; /* is undefined, so is y << 32 */
  5. y << 31; /* shifting 1 into sign bit is also undefined */
  6. ((int32_t) -1) << 1; /* is undefined */
  7. ((int32_t) -1) >> 1; /* is implementation-defined */
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top