有没有办法在gcc上执行128位整数< 4.4 [英] Is there any way to do 128 bit ints on gcc <4.4
问题描述
gcc
4.4似乎是当他们添加 int128_t
时,我需要使用位移,并且已经用完的一些位域的房间。
编辑:这可能是因为我在32位计算机上,没有办法将其用于32位计算机英特尔凌动),有吗?我不在乎它是否会产生棘手的慢速机器码,如果我按照预期的方式工作,就会发生位移。
很确定在早期版本的gcc上可用 __ int128_t
。刚刚检查过4.2.1和FreeBSD,并且 sizeof(__ int128_t)
给出了16个。
gcc
4.4 seems to be when they added int128_t
and I need to use bit shifting and I have run out of room for some bit fields.
Edit: It might be because I'm on 32-bits computer, there's no way to have it for a 32-bits computer (Intel Atom), is there? I wouldn't care if it generated tricky slow machine code if I would work as expected with bit shifting.
I'm pretty sure that __int128_t
is available on earlier versions of gcc. Just checked on 4.2.1 and FreeBSD and sizeof(__int128_t)
gives 16.
这篇关于有没有办法在gcc上执行128位整数< 4.4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!