Skip to content

Commit

Permalink
improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitpriyarup committed Oct 19, 2020
1 parent 86ea862 commit b1ba0ad
Show file tree
Hide file tree
Showing 4 changed files with 426 additions and 207 deletions.
1 change: 1 addition & 0 deletions bit-manipulation.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* \_\_builtin\_ctz\(x\): the number of zeros at the end of the number \(count trailing zeroes\)
* \_\_builtin\_popcount\(x\): the number of ones in the number
* \(A+B\) = \(A^B\) + 2\(A&B\)
> Above equation is full adder, A^B is ans and A&B is carry. Final ans is A^B + 2*(A&B) multiplying by 2 in order to shift bit by one
```cpp
// Multiplication
Expand Down
Loading

0 comments on commit b1ba0ad

Please sign in to comment.