diff --git a/src/addition.c b/src/addition.c index ca1d9ed..afa0ea4 100644 --- a/src/addition.c +++ b/src/addition.c @@ -28,6 +28,11 @@ unsigned int s(unsigned int a) { return a >> 31; } +unsigned int m(unsigned int a) { + unsigned int num = 8388607; + return (a & num); +} + 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 80ede14..66497e0 100644 --- a/src/addition.h +++ b/src/addition.h @@ -9,6 +9,8 @@ unsigned int addition(num a, num b); unsigned int s(unsigned int a); +unsigned int m(unsigned int a); + float addition_float(float a, float b); #endif // ADDITION_H