C++ 128/256-bit fixed size integer types

前端 未结 4 549
误落风尘
误落风尘 2020-12-03 14:27

I was wondering if any fellow SO\'s could recommend a good light-weight fixed size integer type (128-bit or even 256-bit, possibly even template parametrized) library.

4条回答
  •  情话喂你
    2020-12-03 15:09

    The Xint library is currently under review to become part of Boost. Although it is discussed rather controversially and the outcome of the review is not clear yet, the library fulfills some of your requirements:

    • header only
    • reasonable license

    One of the points that are discussed during the review is performance though. If accepted as an official Boost library, I expect performance issues to be addressed promptly.

    So I would give it a try: Code, Documentation.

提交回复
热议问题