1 #ifndef GINAC_GCD_EUCLID
2 #define GINAC_GCD_EUCLID
13 gcd_euclid(umodpoly& c, umodpoly /* passed by value */ a, umodpoly b)
23 bug_on(a[0].ring()->modulus != b[0].ring()->modulus,
26 normalize_in_field(a);
27 normalize_in_field(b);
28 if (degree(a) < degree(b))
32 while (b.size() != 0) {
33 remainder_in_field(r, a, b);
37 normalize_in_field(a);
44 #endif // GINAC_GCD_EUCLID