Is there a 128 bit integer in C++?

后端 未结 7 639
滥情空心
滥情空心 2020-12-01 11:41

I need to store a 128 bits long UUID in a variable. Is there a 128-bit datatype in C++? I do not need arithmetic operations, I just want to easily store and read the value v

7条回答
  •  -上瘾入骨i
    2020-12-01 12:24

    Although GCC does provide __int128, it is supported only for targets (processors) which have an integer mode wide enough to hold 128 bits. On a given system, sizeof() intmax_t and uintmax_t determine the maximum value that the compiler and the platform support.

提交回复
热议问题