Y
Hacker News
new
|
ask
|
show
|
jobs
by
ethan_smith
350 days ago
For 128-bit values in C++, you'd need uint128_t (compiler extension) or a library like Boost.Multiprecision since 1ULL << 127 overflows the 64-bit type before subtraction occurs.