big int

Feb 5, 2016 at 4:07am
how to use __int128 in gcc.

Feb 5, 2016 at 4:38am
What do you mean? It works just like any other object type.
Feb 5, 2016 at 5:23am
> how to use __int128 in gcc.

Use the GNU compiler default: ie. no standard C++ conformance

__int128 is not supported under standard C++ http://coliru.stacked-crooked.com/a/e19c0598ee818039

Even with the home-grown dialect, there is no library support for __int128
http://coliru.stacked-crooked.com/a/b5fd627d3a7376f2

Consider using boost::multiprecision::int128_t instead (portable, standard C++)
http://www.boost.org/doc/libs/1_60_0/libs/multiprecision/doc/html/boost_multiprecision/tut/ints/cpp_int.html
http://coliru.stacked-crooked.com/a/92c1c439b7b6e5a3
Feb 5, 2016 at 3:30pm
There is some library support: std::numeric_limits are defined.
Topic archived. No new replies allowed.