Permalink
Browse files

bitwise

  • Loading branch information...
1 parent 8e79b89 commit 01fb416f3502fc2d1dd4825c2466a198a62f6e59 @tj committed May 4, 2012
Showing with 32 additions and 0 deletions.
  1. +32 −0 bitwise.md
View
@@ -0,0 +1,32 @@
+
+## NOT ~
+
+ ~ 0111
+ = 1000
+
+## OR |
+
+ 0010
+ | 1000
+ = 1010
+
+## XOR ^
+
+ 0010
+ ^ 1010
+ = 1000
+
+## AND &
+
+ 0101
+ & 0011
+ = 0001
+
+## Shifts
+
+ 0011 << 1
+ 0110
+
+ 0110 >> 1
+ 0011
+

0 comments on commit 01fb416

Please sign in to comment.