@ -5,4 +5,8 @@ void full_adder (int* sum, int* nextcarry, int number1, int number2, int carry)
sum[0] = number1 ^ number2 ^ carry;
nextcarry[0] = (number1 & number2) | (number1 & carry) | (number2 & carry);
}
unsigned int addition(unsigned int a, unsigned int b) {
return 0;
@ -3,4 +3,6 @@
void full_adder (int* sum, int* nextcarry, int number1, int number2, int carry);
unsigned int addition(unsigned int a, unsigned int b);
#endif // ADDITION_H