CppCommon  1.0.4.1
C++ Common Library
common_uint128.cpp

Unsigned 128-bit integer type example

#include "common/uint128.h"
#include <iostream>
int main(int argc, char** argv)
{
CppCommon::uint128_t a(0xABCDEFull);
CppCommon::uint128_t b(0x12345ull, 0xFEDBCA9876543210ull);
std::cout << a << " * " << b << " = " << (a * b) << std::endl;
std::cout << b << " / " << a << " = " << (b / a) << std::endl;
return 0;
}
Unsigned 128-bit integer type.
Definition: uint128.h:28
Unsigned 128-bit integer type definition.