在Windows上使用C的128位整数? [英] 128 bit integer with c on windows?
本文介绍了在Windows上使用C的128位整数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Windows上是否有任何C编译器能够本地使用128位整数? 例如,您可以在Linux上使用gcc,以及__uint128_t ...在Windows上还有其他机会吗? (如果在32位计算机上也可以使用128位,那就太好了!:D)
Is there any c compiler on windows able to use 128 bit integers natively? On example, you can use gcc on linux, with __uint128_t... any other chance on windows? (It would be great if 128 bit worked on 32 bit computers as well! :D)
Matteo
推荐答案
在GCC中,您可以尝试"属性((mode(...)))",请参见此处,例如
In GCC you can try ``attribute((mode(...)))`, see here and here, e.g.
typedef unsigned int myU128 __attribute__((mode(TI)));
结果取决于您的平台.
这篇关于在Windows上使用C的128位整数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文