cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
big int
big int
Feb 5, 2016 at 4:07am UTC
sujitnag
(132)
how to use __int128 in gcc.
Feb 5, 2016 at 4:38am UTC
Duthomhas
(13206)
What do you mean? It works just like any other object type.
Feb 5, 2016 at 5:23am UTC
JLBorges
(13770)
> 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 UTC
Cubbi
(4774)
There is some library support: std::numeric_limits are defined.
Topic archived. No new replies allowed.