How to to divide the constant 2^64 (i.e. ULLONG_MAX
+ 1) by uint64
larger than 2, without using unit128
?
In other words, given x
such as 2 <= x <= 2^64-1
, how to obtain the quotient 2^64 / x
, using just uint64
?
The problem is that I cannot represent 2^64, let alone to divide it so I was hoping there is a trick which would simulate the result.