From bd5bc2739b797783e34f5c6567c9fded317ab477 Mon Sep 17 00:00:00 2001 From: fdai7930 Date: Thu, 8 Feb 2024 22:20:43 +0100 Subject: [PATCH] Refactoring: changed the name of the fonction multi_using_two_complements to multi_using_two_comp --- src/multiplication.c | 2 +- src/multiplication.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/multiplication.c b/src/multiplication.c index 934fa74..578e007 100644 --- a/src/multiplication.c +++ b/src/multiplication.c @@ -48,7 +48,7 @@ int multi_by_sum(int num1, int num2) { return num1 * (num2 + 1); } -int multi_using_two_complements(int num2, int num3) { +int multi_using_two_comp(int num2, int num3) { int result = 0; while (num2 != 0) { if (num2 & 1) { diff --git a/src/multiplication.h b/src/multiplication.h index 9155916..ba940e2 100644 --- a/src/multiplication.h +++ b/src/multiplication.h @@ -10,7 +10,7 @@ float multi_by_percentage(float num, float percentage); int multi_by_random(int num); int multi_string(const char* str, int factor); int multi_by_sum(int num1, int num2); -int multi_using_two_complements(int num2, int num3); +int multi_using_two_comp(int num2, int num3); int multi_by_even(int num, int factor); int multi_using_lookup_table(int num1, int num2); int multi_using_logical_operations(int num1, int num2);