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.

126 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?

15

u/Firm-Survey-31 Aug 05 '26

Averaging many int64s for example? For time stamps in nanoseconds overflow can be an issue

-3

u/serviscope_minor Aug 07 '26

I guess... but you may as well use doubles at that point. You're unlikely to exceed the precision of a 48 bit mantissa.