gcc是否支持amd64上的128位int? [英] Does gcc support 128-bit int on amd64?
本文介绍了gcc是否支持amd64上的128位int?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
gcc是否支持amd64上的128位int?
如何定义它?
使用scanf / printf来读取/写入它?
解决方案
GCC 支持内置 __ int128
和 __ uint128
64位平台上的类型,但它看起来像128位整数的格式化支持在libc中不太常见。
注意:在4.6.0之前,它们被命名为 __ int128_t
和 __ uint128_t
。
Does gcc support 128-bit int on amd64?
How to define it?
How to use scanf/printf to read/write it?
解决方案
GCC supports built-in __int128
and __uint128
types on 64-bit platforms, but it looks like formatting support for 128-bit integers is less common in libc.
Note: before version 4.6.0 they were named __int128_t
and __uint128_t
.
这篇关于gcc是否支持amd64上的128位int?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文