How would I define an int128/uint128 and an int256/uint256 in C++?
I'm using GCC and 32-bit x86.
extremely large variables in C++
- AndrewAPrice
- Member
- Posts: 2303
- Joined: Mon Jun 05, 2006 11:00 pm
- Location: USA (and Australia)
extremely large variables in C++
My OS is Perception.
256 byte is not possible so you'll have to combine two 128 bits values. I use this but i use long mode so it might not work.
Code: Select all
typedef unsigned __uint128_t __attribute__ (( __mode__ (__TI__)));
typedef struct __uint256_t {
__uint128_t lo, hi;
} __uint256_t;
Author of COBOS
- Kevin McGuire
- Member
- Posts: 843
- Joined: Tue Nov 09, 2004 12:00 am
- Location: United States
- Contact: