Skip to content

Commit

Permalink
Bit ops
Browse files Browse the repository at this point in the history
  • Loading branch information
cpq committed Jan 4, 2023
1 parent 95f585d commit ff5a8a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ REGISTER &= ~((2^N - 1) << X);

And, finally, we want to set a given bit range to the value we want. We
shift that value X positions left, and OR with the current value of the whole
register:
register (in order to retain other bits' values):

```c
REGISTER |= VALUE << X;
Expand Down

0 comments on commit ff5a8a0

Please sign in to comment.