<分区>
gcc 是否支持 amd64 上的 128 位 int?
如何定义?
如何用scanf/printf读/写?
<分区>
gcc 是否支持 amd64 上的 128 位 int?
如何定义?
如何用scanf/printf读/写?
最佳答案
GCC支持内置 __int128
和 unsigned __int128
类型(仅在 64 位平台上),但看起来对 128 位整数的格式化支持在 libc 中不太常见。
备注:<stdint.h>
定义 __int128_t
和 __uint128_t
在 gcc4.6 之前的版本上。另见 Is there a 128 bit integer in gcc?获取 gcc/clang/ICC 版本表。
How to know if __uint128_t is defined用于检测 __int128
关于c - gcc 在 amd64 上支持 128 位 int 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3329541/