Last active
March 22, 2019 02:43
-
-
Save patricksimpson/e8a3a80c6882a0bcdee20c2709cafd4e to your computer and use it in GitHub Desktop.
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 characters
function add(x, y) { | |
while (y != 0) { | |
carry = x & y; | |
x = x ^ y; | |
y = carry << 1; | |
} | |
return x; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment