Last active
July 20, 2016 11:26
-
-
Save vetras/317fa445049b8ae9e78e to your computer and use it in GitHub Desktop.
Revisions
-
vetras renamed this gist
Mar 18, 2016 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
vetras created this gist
Aug 18, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ Set bit X to 1 : number |= 1 << x; Set bit X to zero : number &= ~(1 << x); Toggle bit X : number ^= 1 << x; Checking the value of bit X : value = number & (1 << x);