diff --git a/src/addition.c b/src/addition.c index 0298801..ca1d9ed 100644 --- a/src/addition.c +++ b/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; } \ No newline at end of file diff --git a/src/addition.h b/src/addition.h index 0898765..80ede14 100644 --- a/src/addition.h +++ b/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