by ape4 · 1y ago · 0 comments
const C1 = 505054698555331 // floor(2^64*4/146097)
as constexpr int C1 = floor(2^64*4/146097);I guess in that case as long as the 128-bit type supports constexpr basic math operations that should suffice to replace the hardcoded constants with their source expressions.
const C1 = 505054698555331 // floor(2^64*4/146097)
is faster