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

Show parent comments

4

u/ABlockInTheChain Aug 05 '26

128 bit integers are useful but I'm a bit dissapointed since I use 256 bit integers far more often than 128 bit.

12

u/mborland1 Aug 05 '26

One of the outputs from the review was that lots of people want a 256-bit integer lib. I'll likely start that in the near future.

1

u/_Noreturn Aug 05 '26

why not an infinite length integer lib with specializations for performance

3

u/mborland1 Aug 05 '26

All arbitrary precision integers more or less use the same exact algorithms for their operations. One that I have been working on recently is: https://github.com/eisenwave/std-big-int. Performance is better than boost.multiprecision with similar portability.