Lines Matching refs:root1
30 check_one (mpz_t root1, mpz_t x2, unsigned long nth, int res, int i)
40 MPZ_CHECK_FORMAT (root1);
46 mpz_pow_ui (temp, root1, nth);
52 if (mpz_cmp (root1, root2) != 0 || mpz_cmp (x2, temp2) != 0 || mpz_cmpabs (temp, x2) > 0 || res == mpz_cmp_ui (rem2, 0))
56 debug_mp (root1, 10);
66 debug_mp (root1, 10);
73 mpz_add_ui (temp2, root1, 1L);
82 debug_mp (root1, 10);
98 mpz_t root1;
115 mpz_init (root1);
119 res = mpz_root (root1, x2, 2);
120 check_one (root1, x2, 2, res, -1);
134 res = mpz_root (root1, x2, nth);
141 mpz_pow_ui (x2, root1, nth);
149 res = mpz_root (root1, x2, nth);
152 check_one (root1, x2, nth, res, i);
157 mpz_neg (root1, root1);
158 check_one (root1, x2, nth, res, i);
164 mpz_clear (root1);