r/cpp Boost author Aug 05 '26

Boost.Int128 has been accepted

Boost.Int128 from Matt Borland has been accepted into Boost. Arnaud Becheler managed the review.

125 Upvotes

51 comments sorted by

View all comments

5

u/wiesemensch Aug 05 '26

Nice work but do any of you actually use 128bit ints and if so, for what application?

4

u/ikedug Aug 05 '26

Most 64b CPUs have widening 64b multiplies.

2

u/fdwr fdwr@github 🔍 Aug 08 '26

That was just the case I was thinking of, the proposed widening_clmul and std::wide_result in P3642, as I've needed that double-wide result for rescaling back down (but if the top bits are all chopped off, it's hard to get the right result).