Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Constant Time.
const uintSize = 32 << (^uint(0) >> 32 & 1)
That's not exclusive or, that's bitwise complement (~ in C). Go reuses the carat symbol for this, but xor needs two inputs.
That's not exclusive or, that's bitwise complement (~ in C). Go reuses the carat symbol for this, but xor needs two inputs.