Home Site map Contacts CZ

Jan Ringoš, Tringi Netbase

Papers & C++  »  Libraries and sources  » 


Now implemented throught generic double_integer template that doubles width of any integral data type, even recursively. Unlike other large number classes, you can work with double_integer instantiated types just like with other P.O.D. types, the template generates native little-endian integers.


Download: int128-2.0.zip

The double_integer template. Version 2.0
File size: 8.4 kB


The new version of the int128 is built on top a template called double_integer which representation-wise correctly (little-endian) doubles width of any arbitrary integral data type. C++11 compiler support is required.

Key features

  • Objects represent the data type they simulate for little-endian platform, P.O.D. aka standard layout type.
  • The std::numeric_limits is correctly overloaded for every instantiated double_integer.
  • Nesting instantiations is valid way to create 256-bit integers, 512-bit integers and even arbitrarily larger ones.


int128 s a free software available under the zlib license.
For detailed text of the license see The zlib License.

exertion of the imagination, portfolio library and software repository