extremely large variables in C++
Posted: Tue Jul 17, 2007 5:53 am
How would I define an int128/uint128 and an int256/uint256 in C++?
I'm using GCC and 32-bit x86.
I'm using GCC and 32-bit x86.
The Place to Start for Operating System Developers
http://forum.osdev.org./
Code: Select all
typedef unsigned __uint128_t __attribute__ (( __mode__ (__TI__)));
typedef struct __uint256_t {
__uint128_t lo, hi;
} __uint256_t;
In C++ you would use the power of classes and operator overloading.How would I define an int128/uint128 and an int256/uint256 in C++?