We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#include <stdint.h> int32_t a = 123; int32_t b1 = a >> 33; int32_t b2 = a << 33; int32_t b3 = a >> -31; int32_t b4 = a >> -1; int32_t b5 = a << -31; int32_t b6 = a << -1;
在许多机器上(如Windows),当移动一个w位的值时,移位指令只考虑位移量的低log2w位,因此实际上位移量就是通过计算k mod w得到的。 例如上面的代码,b1实际为右移1位,b2为左移1位,b3为右移1位,b4为右移31位,b5为左移1位,b6为左移31位。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在许多机器上(如Windows),当移动一个w位的值时,移位指令只考虑位移量的低log2w位,因此实际上位移量就是通过计算k mod w得到的。
例如上面的代码,b1实际为右移1位,b2为左移1位,b3为右移1位,b4为右移31位,b5为左移1位,b6为左移31位。
The text was updated successfully, but these errors were encountered: