Home Site map Contacts CZ

Jan Ringoš, Tringi Netbase

Papers & C++  »  Libraries and sources  » 

int128

int128 and uint128 are similar classes for operations over native little-endian 128-bit numbers. Unlike other large number classes, you can work with these just like with other P.O.D. types.

Important note: Currently two versions are available. Latest but incomplete is provided right below, and older, complete and a little buggy one is in the second half of the page.
Download

Download: int128-1.9.1.zip

Development preview of the new library. Version 1.9.1
File size: 4.9 kB

Details

The new version of the library is (will be) built on top a template called double_integer which representation-wise correctly (little-endian) doubles width of any arbitrary integral data type.

Key features

  • Objects correctly 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.
  • [...]

Legacy version of the library

Download

Download: int128.zip

Legacy classes int128 and uint128. Version 1.1
File size: 6.6 kB

Known issues

  • Operator - is wrong for both classes
  • Bound to the GCC compiler
  • Only 128 bit wide
  • None unit test whatsoever

License

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