Browse Source

addition base case to tenscolumns

master
Dennis Sperzel 11 months ago
parent
commit
faade33029
  1. 2
      src/addition.c

2
src/addition.c

@ -13,5 +13,5 @@ unsigned int addition(unsigned int a, unsigned int b) {
full_adder(s, nc, a, b, 0); full_adder(s, nc, a, b, 0);
return (unsigned int) s[0];
return (unsigned int) s[0] ^ (nc[0] << 1);
} }
Loading…
Cancel
Save