Browse Source

addition read sign out of number

master
Dennis Sperzel 11 months ago
parent
commit
60494752b2
  1. 4
      src/addition.c
  2. 2
      src/addition.h

4
src/addition.c

@ -24,6 +24,10 @@ unsigned int addition(num number1, num number2) {
return result;
}
unsigned int s(unsigned int a) {
return a >> 31;
}
float addition_float(float a, float b) {
return 0.0;
}

2
src/addition.h

@ -7,6 +7,8 @@ void full_adder (num* sum, num* nextcarry, num number1, num number2, num carry);
unsigned int addition(num a, num b);
unsigned int s(unsigned int a);
float addition_float(float a, float b);
#endif // ADDITION_H
Loading…
Cancel
Save