gpt4 book ai didi

c - 是否有任何现有的 C 实现在(无)符号整数表示中具有填充位?

转载 作者:太空狗 更新时间:2023-10-29 16:42:50 25 4
gpt4 key购买 nike

根据 C99,signed intunsigned int 表示中可能有填充位。所以我想知道是否还有任何实现具有这种过时的东西?

最佳答案

来自 The New C Standard :

On some Cray processors the type short has 32 bits of precision but is held in 64 bits worth of storage. The Unisys A Series unsigned integer type contains a padding bit that is treated as a sign bit in the signed integer representation.

...

The Harris/6 computer represented the type long using two consecutive int types. This meant that the sign bit of one of the ints had to be ignored; it was treated as a padding bit. The value representation of the type int is 24 bits wide, and long had a value representation of 47 bits with one padding bit.

关于c - 是否有任何现有的 C 实现在(无)符号整数表示中具有填充位?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14120197/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com