128 bit integer with c on windows?
Is there any c compiler on windows able to use 128 bit integers natively? On example, you can use gcc on linu开发者_Python百科x, with __uint128_t... any other chance on windows? (It would be great if 128 bit worked on 32 bit computers as well! :D)
Matteo
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.
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).
精彩评论