Windows 上带有 c 的 128 位整数?

2024-03-23

Windows 上有没有能够本地使用 128 位整数的 C 编译器? 例如,您可以在 Linux 上使用 gcc,并使用 __uint128_t... 在 Windows 上还有其他机会吗? (如果 128 位也能在 32 位计算机上运行那就太好了!:D)

Matteo


在海湾合作委员会你可以尝试__attribute__((mode(...))), see here https://stackoverflow.com/questions/4559025/what-does-gcc-attribute-modexx-actually-do and here http://www.delorie.com/gnu/docs/gcc/gccint_53.html, e.g.

typedef unsigned int myU128 __attribute__((mode(TI)));

不过,结果取决于您的平台。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Windows 上带有 c 的 128 位整数? 的相关文章

随机推荐