Skip to content
New issue

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

布尔代数和交换两个变量的值 #88

Open
Triment opened this issue Jul 13, 2023 · 0 comments
Open

布尔代数和交换两个变量的值 #88

Triment opened this issue Jul 13, 2023 · 0 comments

Comments

@Triment
Copy link
Owner

Triment commented Jul 13, 2023

加法逆元 a^a=0

*y = *x^*y;
*x = *x^*y;
*y= *x^y;

1: y=x^y
2: x = x^y^x = y^0=y
3: y = y^x^y =x^0 =x

~0可以生成全1掩码而不论使用多长的位表示变量

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant