Browse Source

multiplication right shift

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

3
src/multiplication.c

@ -17,6 +17,9 @@ int multiply_three_integers(int a, int b, int c) {
int multiply_left_shift(int a, int b) {
return a << b;
}
int multiply_right_shift(int a, int b) {
return a >> b;
}

1
src/multiplication.h

@ -4,6 +4,7 @@ extern double multi(double ein1, double ein2);
double square(double x);
int multiply_three_integers(int a, int b, int c);
int multiply_left_shift(int a, int b);
int multiply_right_shift(int a, int b);
#endif // MULTIPLICATION_H
Loading…
Cancel
Save