Browse Source

Refactoring: changed the name of the fonction multi_using_two_complements to multi_using_two_comp

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

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

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

Loading…
Cancel
Save