1
0

Blog post about making a GRUB tampoline
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-05-03 16:15:05 +02:00
parent 3da3dc4259
commit de822b0ee7
3 changed files with 88 additions and 2 deletions

View File

@ -4,6 +4,7 @@ subtitle: "Tips and trick for embedded C/C++"
summary: "Tips and trick for embedded C/C++"
date: 2020-06-13T19:01:19+02:00
lastmod: 2020-06-13T19:01:19+02:00
highlight: true
---
# Set a bit
@ -24,7 +25,6 @@ output = input & ~(1 << bit);
variable &= ~(1 << bit);
// Multiple bits
variable &= ~(0b101 << bit);
```
# Toggle a bit