From df10570250bb4ada7f50ee5913e5fd3c8938ef1a Mon Sep 17 00:00:00 2001 From: fdai7930 Date: Thu, 8 Feb 2024 23:01:45 +0100 Subject: [PATCH] refactoring: replaced multi_using_logical_operations with multi_using_logical_op --- 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 267c6ea..45f1fb7 100644 --- a/src/multiplication.c +++ b/src/multiplication.c @@ -79,7 +79,7 @@ int multi_using_lookup_table(int num1, int num2) { return lookup_table[num1][num2]; } -int multi_using_logical_operations(int num1, int num2) { +int multi_using_logical_op(int num1, int num2) { int result = 0; while (num2) { if (num2 & 1) { diff --git a/src/multiplication.h b/src/multiplication.h index 42a90b6..7e1c2eb 100644 --- a/src/multiplication.h +++ b/src/multiplication.h @@ -13,7 +13,7 @@ int multi_string(const char* str, int factor); 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); +int multi_using_logical_op(int num1, int num2); int multi_using_modulo(int num1, int num2, int modulo); int multi_by_prime(int num, int prime); int multi_using_increment(int num1, int num2);