Theme update. Work on bitmagic post
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -34,6 +34,8 @@ projects: []
|
||||
output = input | (1 << bit);
|
||||
// Shorthand
|
||||
variable |= (1 << bit);
|
||||
// Multiple bits
|
||||
variable |= (0b101 << bit);
|
||||
```
|
||||
|
||||
# Clear a bit
|
||||
@ -42,6 +44,9 @@ variable |= (1 << bit);
|
||||
output = input & ~(1 << bit);
|
||||
// Shorthand
|
||||
variable &= ~(1 << bit);
|
||||
// Multiple bits
|
||||
variable &= ~(0b101 << bit);
|
||||
|
||||
```
|
||||
|
||||
# Toggle a bit
|
||||
@ -50,4 +55,6 @@ variable &= ~(1 << bit);
|
||||
output = x ^ (1 << bit);
|
||||
// Shorthand
|
||||
variable ^= (1 << bit);
|
||||
// Multiple bits
|
||||
variable ^= (0b101 << bit);
|
||||
```
|
Submodule themes/academic updated: 8d75e9e27a...cd023168da
Reference in New Issue
Block a user