Lines Matching refs:gmpnum_a

487 	mpz_t *gmpnum_a, *gmpnum_b, *gmpnum_result;  in gmp_zval_binary_ui_op_ex()  local
492 FETCH_GMP_ZVAL(gmpnum_a, a_arg, arga_tmp); in gmp_zval_binary_ui_op_ex()
520 long_result = gmp_ui_op(*gmpnum_result, *gmpnum_a, (unsigned long)Z_LVAL_PP(b_arg)); in gmp_zval_binary_ui_op_ex()
521 if (use_sign && mpz_sgn(*gmpnum_a) == -1) { in gmp_zval_binary_ui_op_ex()
525 gmp_ui_op(*gmpnum_result, *gmpnum_a, (unsigned long)Z_LVAL_PP(b_arg)); in gmp_zval_binary_ui_op_ex()
528 gmp_op(*gmpnum_result, *gmpnum_a, *gmpnum_b); in gmp_zval_binary_ui_op_ex()
549 mpz_t *gmpnum_a, *gmpnum_b, *gmpnum_result1, *gmpnum_result2; in gmp_zval_binary_ui_op2_ex() local
555 FETCH_GMP_ZVAL(gmpnum_a, a_arg, arga_tmp); in gmp_zval_binary_ui_op2_ex()
585 …long_result = gmp_ui_op(*gmpnum_result1, *gmpnum_result2, *gmpnum_a, (unsigned long)Z_LVAL_PP(b_ar… in gmp_zval_binary_ui_op2_ex()
587 gmp_ui_op(*gmpnum_result1, *gmpnum_result2, *gmpnum_a, (unsigned long)Z_LVAL_PP(b_arg)); in gmp_zval_binary_ui_op2_ex()
590 gmp_op(*gmpnum_result1, *gmpnum_result2, *gmpnum_a, *gmpnum_b); in gmp_zval_binary_ui_op2_ex()
629 mpz_t *gmpnum_a, *gmpnum_result; in gmp_zval_unary_op() local
632 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a); in gmp_zval_unary_op()
635 gmp_op(*gmpnum_result, *gmpnum_a); in gmp_zval_unary_op()
691 mpz_t *gmpnum_a; in _gmp_unary_opl() local
698 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a); in _gmp_unary_opl()
699 RETVAL_LONG(gmp_op(*gmpnum_a)); in _gmp_unary_opl()
709 mpz_t *gmpnum_a, *gmpnum_b; in _gmp_binary_opl() local
716 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a); in _gmp_binary_opl()
719 RETVAL_LONG(gmp_op(*gmpnum_a, *gmpnum_b)); in _gmp_binary_opl()
1095 mpz_t *gmpnum_a, *gmpnum_result; local
1102 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a);
1104 if (mpz_sgn(*gmpnum_a) < 0) {
1111 mpz_sqrt(*gmpnum_result, *gmpnum_a);
1123 mpz_t *gmpnum_a, *gmpnum_result1, *gmpnum_result2; local
1131 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a);
1133 if (mpz_sgn(*gmpnum_a) < 0) {
1141 mpz_sqrtrem(*gmpnum_result1, *gmpnum_result2, *gmpnum_a);
1157 mpz_t *gmpnum_a; local
1164 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a);
1166 RETVAL_BOOL((mpz_perfect_square_p(*gmpnum_a)!=0));
1176 mpz_t *gmpnum_a; local
1184 FETCH_GMP_ZVAL(gmpnum_a, gmpnumber_arg, temp_a);
1186 RETVAL_LONG(mpz_probab_prime_p(*gmpnum_a, reps));
1210 mpz_t *gmpnum_a, *gmpnum_b, *gmpnum_t, *gmpnum_s, *gmpnum_g; local
1218 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a);
1225 mpz_gcdext(*gmpnum_g, *gmpnum_s, *gmpnum_t, *gmpnum_a, *gmpnum_b);
1245 mpz_t *gmpnum_a, *gmpnum_b, *gmpnum_result; local
1253 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a);
1257 res=mpz_invert(*gmpnum_result, *gmpnum_a, *gmpnum_b);
1290 mpz_t *gmpnum_a, *gmpnum_b; local
1298 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a);
1307 res = mpz_cmp_si(*gmpnum_a, Z_LVAL_PP(b_arg));
1309 res = mpz_cmp(*gmpnum_a, *gmpnum_b);
1323 mpz_t *gmpnum_a; local
1330 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a);
1332 RETVAL_LONG(mpz_sgn(*gmpnum_a));
1406 mpz_t *gmpnum_a, *gmpnum_b, *gmpnum_result, *gmpnum_t; local
1413 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a);
1419 mpz_and(*gmpnum_t, *gmpnum_a, *gmpnum_b);
1422 mpz_ior(*gmpnum_result, *gmpnum_a, *gmpnum_b);
1440 mpz_t *gmpnum_a; local
1446 ZEND_FETCH_RESOURCE(gmpnum_a, mpz_t *, a_arg, -1, GMP_RESOURCE_NAME, le_gmp);
1454 mpz_setbit(*gmpnum_a, index);
1456 mpz_clrbit(*gmpnum_a, index);
1467 mpz_t *gmpnum_a; local
1473 ZEND_FETCH_RESOURCE(gmpnum_a, mpz_t *, a_arg, -1, GMP_RESOURCE_NAME, le_gmp);
1480 mpz_clrbit(*gmpnum_a, index);
1490 mpz_t *gmpnum_a; local
1496 ZEND_FETCH_RESOURCE(gmpnum_a, mpz_t *, a_arg, -1, GMP_RESOURCE_NAME, le_gmp);
1503 if (mpz_tstbit(*gmpnum_a, index)) {
1516 mpz_t *gmpnum_a; local
1523 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a);
1525 RETVAL_LONG(mpz_popcount(*gmpnum_a));
1535 mpz_t *gmpnum_a, *gmpnum_b; local
1542 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a);
1545 RETVAL_LONG(mpz_hamdist(*gmpnum_a, *gmpnum_b));
1556 mpz_t *gmpnum_a; local
1564 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a);
1571 RETVAL_LONG(mpz_scan0(*gmpnum_a, start));
1581 mpz_t *gmpnum_a; local
1589 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a);
1595 RETVAL_LONG(mpz_scan1(*gmpnum_a, start));