Browse Source

refactoring: replaced multi_using_logical_operations with multi_using_logical_op

remotes/origin/multiplication
fdai7930 11 months ago
parent
commit
df10570250
  1. 2
      src/multiplication.c
  2. 2
      src/multiplication.h

2
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) {

2
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);

Loading…
Cancel
Save