51{
53
55 {
58 return;
59 }
60 if (mpz_cmp_ui(&b, 1) == 0)
61 {
64 return;
65 }
66 if (mpz_cmp_si(&b, -1) == 0)
67 {
70 return;
71 }
74 mpz_gcd(&g, &a, &b);
79 else
82}
void init(ElementType &result) const
static void clear(ElementType &result)
void set(ElementType &result, const ElementType &a) const
void set_zero(ElementType &result) const
void negate(ElementType &result, const ElementType &a) const
void divide(ElementType &result, const ElementType &a, const ElementType &b) const
exact division of integers.
void set_from_long(ElementType &result, long a) const
bool is_zero(const ElementType &f) const