...
| Code Block | ||||
|---|---|---|---|---|
| ||||
const unsigned long mask = (1UL << ((sizeof(unsigned long) * CHAR_BIT) -~(ULONG_MAX >> 1)); unsigned long x; /* Initialize x */ x = (x ^ mask) + 1; |
...
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
const unsigned long mask = (1UL << ((sizeof(unsigned long) * CHAR_BIT) -~(ULONG_MAX >> 1)); unsigned long x; /* Initialize x */ x = (x ^ mask) + 1; |
...