Skip to content

Commit fe2a59b

Browse files
Yan Huangadamant-pwn
authored andcommitted
Update bit-manipulation.md
1 parent fbf3a8e commit fe2a59b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/algebra/bit-manipulation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ bool isPowerOfTwo(unsigned int n) {
152152
}
153153
```
154154

155-
### Clear the most-right set bit
155+
### Clear the right-most set bit
156156

157157
The expression $n ~\&~ (n-1)$ can be used to turn off the rightmost set bit of a number $n$.
158158
This works because the expression $n-1$ flips all bits after the rightmost set bit of $n$, including the rightmost set bit.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy