Lines Matching refs:op2
221 mpz_t op1, op2, ref;
233 mpz_inits (bs, op1, op2, ref, gcd1, gcd2, temp1, temp2, temp3, s, NULL);
240 mpz_set_ui (op2, GMP_NUMB_MAX); /* FIXME: Huge limb doesn't always fit */
241 mpz_mul_2exp (op1, op2, 100);
242 mpz_add (op1, op1, op2);
243 mpz_mul_ui (op2, op2, 2);
244 one_test (op1, op2, NULL, -1);
260 mpz_rrandomb (op2, rands, mpz_get_ui (bs) + MIN_OPERAND_BITSIZE);
266 mpz_mul (op1, op1, op2); /* make op1 a multiple of op2 */
268 mpz_mul (op2, op1, op2); /* make op2 a multiple of op1 */
273 mpz_neg (op2, op2);
275 one_test (op1, op2, NULL, i);
285 make_chain_operands (ref, op1, op2, rands, 16, 12, chain_len);
287 one_test (op1, op2, ref, i);
292 mpz_set_si (op2, 0);
293 mpz_gcdext (NULL, temp1, temp2, op1, op2);
296 mpz_set_si (op2, 6);
297 mpz_gcdext (NULL, temp1, temp2, op1, op2);
301 mpz_clears (bs, op1, op2, ref, gcd1, gcd2, temp1, temp2, temp3, s, NULL);
314 one_test (mpz_t op1, mpz_t op2, mpz_t ref, int i)
317 printf ("%d %d %d\n", SIZ (op1), SIZ (op2), ref != NULL ? SIZ (ref) : 0);
323 fprintf (stderr, "op2="); debug_mp (op2, -16);
326 mpz_gcdext (gcd1, s, NULL, op1, op2);
335 fprintf (stderr, "op2="); debug_mp (op2, -16);
341 if (!gcdext_valid_p(op1, op2, gcd1, s))
346 fprintf (stderr, "op2="); debug_mp (op2, -16);
352 mpz_gcd (gcd2, op1, op2);
360 fprintf (stderr, "op2="); debug_mp (op2, -16);
367 if (mpz_fits_ulong_p (op1) || mpz_fits_ulong_p (op2))
370 mpz_gcd_ui (gcd2, op2, mpz_get_ui (op1));
372 mpz_gcd_ui (gcd2, op1, mpz_get_ui (op2));
378 fprintf (stderr, "op2="); debug_mp (op2, -16);
385 mpz_gcdext (gcd2, temp1, temp2, op1, op2);
391 mpz_mul (temp2, temp2, op2);
400 fprintf (stderr, "op2="); debug_mp (op2, -16);