Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dacf24f

Browse filesBrowse files
Cheekybabyadamant-pwn
authored andcommitted
Update bit-manipulation.md
Amended the description of "check is a bit is set" for better understanding and fixed some typo errors.
1 parent cbb0a52 commit dacf24f
Copy full SHA for dacf24f

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/algebra/bit-manipulation.md

Copy file name to clipboardExpand all lines: src/algebra/bit-manipulation.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ $1 \ll x$ is a number with only the $x$-th bit set, while $\sim(1 \ll x)$ is a n
116116
117117
### Check if a bit is set
118118
119-
The value of the $x$-th bit can be by shifting the number $x$ positions to the right, the $x$-th bit is the units place, therefore we can extract it by performing a bitwise & with 1
119+
The value of the $x$-th bit can be checked by shifting the number $x$-positions to the right until the $x$-th bit is at the unit place, then we can extract it by performing a bitwise & with 1.
120120
121121
``` cpp
122122
bool is_set(unsigned int number, int x) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.