#include<iostream>
using namespace std;
int main(){
__uint128_t a=0x12345678123456781234567812345678;
return 0;
}
The constant has 8*4*8=128bits=16bytes,but the code raise the following warning:
main.cpp:8:19: warning: integer constant is too large for its type
8 | __uint128_t a=0xab345678123456781234567812345678;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
But in the following code:
#include<iostream>
using namespace std;
int main(){
cout<<sizeof(__uint128_t);
return 0;
}
It return 16 correctly.
My Ubuntu version is 20.04,64 bits
My gcc version is 9.4.0