1
0

Theme update. Work on bitmagic post
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Jens True 2020-07-05 11:14:47 +02:00
parent 25afb5e4e0
commit 6f8f5bfe06
2 changed files with 8 additions and 1 deletions

@ -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);
```

@ -1 +1 @@
Subproject commit 8d75e9e27a763876b452323132fc8a1eb28bf034
Subproject commit cd023168da9c5ef055daa9e837d686f257df2d8a