128 bit integer with c on windows?

試著忘記壹切 提交于 2019-12-09 11:59:52

问题


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


回答1:


In GCC you can try ``attribute((mode(...)))`, see here and here, e.g.

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

The results depend on your platform, though.




回答2:


You could try using SSE intrinsics built into Visual C++

http://msdn.microsoft.com/en-us/library/5eawz414%28v=VS.80%29.aspx (Look at the __m128 type).



来源:https://stackoverflow.com/questions/6414605/128-bit-integer-with-c-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!