CSAPP-3e-Solutions icon indicating copy to clipboard operation
CSAPP-3e-Solutions copied to clipboard

2.63 修复 srl-src.c 中参数 k == 0 时的错误

Open aQuaYi opened this issue 7 years ago • 0 comments

在 C 语言中 x << s 实际上是 x << ( s%w ) ,其中 w 为 x 的位宽度。 所以,当 k == 0 时, -1 << (w-k) 并没有进行左移。

aQuaYi avatar Jul 24 '18 09:07 aQuaYi