24template <
typename T,
typename T2>
27 *r = *r0 - (quotient * temp);
41template <
typename T1,
typename T2>
70template <
typename T,
typename T2>
83 *y = temp - (A / B) * (*y);
93 std::cout <<
gcd <<
" " << x <<
" " << y << std::endl;
95 std::cout <<
gcd <<
" " << x <<
" " << y << std::endl;
void extendedEuclid_1(T1 A, T1 B, T1 *GCD, T2 *x, T2 *y)
void update_step(T *r, T *r0, const T2 quotient)
void extendedEuclid(T A, T B, T *GCD, T2 *x, T2 *y)
int gcd(int num1, int num2)