Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#CCCCFF
langc
const unsigned long mask = (1UL << ((sizeof(unsigned long) * CHAR_BIT) -~(ULONG_MAX >> 1));
unsigned long x;

/* Initialize x */

x = (x ^ mask) + 1;

...