Ticket #11364: Test.cpp

File Test.cpp, 406 bytes (added by Graham Clemow <boostbug@…>, 7 years ago)

Example program

Line 
1#include <iostream>
2#include <boost\multiprecision\cpp_int.hpp>
3
4using namespace boost::multiprecision;
5
6int main() {
7 int128_t a = 0xfffffffeu;
8 int128_t b = -2;
9 int128_t c = a ^ b;
10 int128_t d = ~(a ^ ~b);
11
12 std::cout << "a is " << a << std::endl;
13 std::cout << "b is " << b << std::endl;
14 std::cout << "c is " << c << std::endl;
15 std::cout << "d is " << d << std::endl;
16
17 return 0;
18}