You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: primitive-types/cheatSheet.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,9 @@ What does that mean?
105
105
Essentially, bitmasks are a way to manipulate values inside of a single bit. Essentially you are
106
106
packaging together a series of values in the same bit. Checkout [this post](http://codeforces.com/blog/entry/18169) for more information.
107
107
108
-
# Lowermost setBit
108
+
# Clearing Lowermost set bit
109
+
The expression x & (x-1) clears the lowermost set bit. The expression x&~(x-1) extracts the lowermost
110
+
bit of a. Try this out for yourself. Here's a helpful [Stackoverflow](https://softwareengineering.stackexchange.com/questions/219721/clearing-the-lowest-set-bit-of-a-number) explanation.
109
111
# Signedness
110
112
# Using a Cache
111
113
# Commutativity and Associativity in parallel and reorder operations
0 commit comments