Lines Matching refs:gmpnum_a
681 mpz_ptr gmpnum_a, gmpnum_b; in gmp_cmp() local
686 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, is_operator ? 0 : 1); in gmp_cmp()
696 res = mpz_cmp_si(gmpnum_a, Z_LVAL_P(b_arg)); in gmp_cmp()
698 res = mpz_cmp(gmpnum_a, gmpnum_b); in gmp_cmp()
713 mpz_ptr gmpnum_a, gmpnum_b, gmpnum_result; in gmp_zval_binary_ui_op() local
716 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, is_operator ? 0 : 1); in gmp_zval_binary_ui_op()
748 gmp_ui_op(gmpnum_result, gmpnum_a, (gmp_ulong) Z_LVAL_P(b_arg)); in gmp_zval_binary_ui_op()
750 gmp_op(gmpnum_result, gmpnum_a, gmpnum_b); in gmp_zval_binary_ui_op()
763 mpz_ptr gmpnum_a, gmpnum_b, gmpnum_result1, gmpnum_result2; in gmp_zval_binary_ui_op2() local
767 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in gmp_zval_binary_ui_op2()
800 gmp_ui_op(gmpnum_result1, gmpnum_result2, gmpnum_a, (gmp_ulong) Z_LVAL_P(b_arg)); in gmp_zval_binary_ui_op2()
802 gmp_op(gmpnum_result1, gmpnum_result2, gmpnum_a, gmpnum_b); in gmp_zval_binary_ui_op2()
829 mpz_ptr gmpnum_a, gmpnum_result; in gmp_zval_unary_op() local
832 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in gmp_zval_unary_op()
835 gmp_op(gmpnum_result, gmpnum_a); in gmp_zval_unary_op()
858 mpz_ptr gmpnum_a; in _gmp_unary_opl() local
865 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in _gmp_unary_opl()
866 RETVAL_LONG(gmp_op(gmpnum_a)); in _gmp_unary_opl()
1335 mpz_ptr gmpnum_a, gmpnum_result; in ZEND_FUNCTION() local
1342 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
1344 if (mpz_sgn(gmpnum_a) < 0) { in ZEND_FUNCTION()
1351 mpz_sqrt(gmpnum_result, gmpnum_a); in ZEND_FUNCTION()
1360 mpz_ptr gmpnum_a, gmpnum_result1, gmpnum_result2; in ZEND_FUNCTION() local
1368 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
1370 if (mpz_sgn(gmpnum_a) < 0) { in ZEND_FUNCTION()
1383 mpz_sqrtrem(gmpnum_result1, gmpnum_result2, gmpnum_a); in ZEND_FUNCTION()
1393 mpz_ptr gmpnum_a, gmpnum_result; in ZEND_FUNCTION() local
1405 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
1407 if (nth % 2 == 0 && mpz_sgn(gmpnum_a) < 0) { in ZEND_FUNCTION()
1414 mpz_root(gmpnum_result, gmpnum_a, (gmp_ulong) nth); in ZEND_FUNCTION()
1424 mpz_ptr gmpnum_a, gmpnum_result1, gmpnum_result2; in ZEND_FUNCTION() local
1437 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
1439 if (nth % 2 == 0 && mpz_sgn(gmpnum_a) < 0) { in ZEND_FUNCTION()
1455 mpz_rootrem(gmpnum_result1, gmpnum_result2, gmpnum_a, (gmp_ulong) nth); in ZEND_FUNCTION()
1457 mpz_root(gmpnum_result1, gmpnum_a, (gmp_ulong) nth); in ZEND_FUNCTION()
1459 mpz_sub(gmpnum_result2, gmpnum_a, gmpnum_result2); in ZEND_FUNCTION()
1470 mpz_ptr gmpnum_a; in ZEND_FUNCTION() local
1477 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
1479 RETVAL_BOOL((mpz_perfect_square_p(gmpnum_a) != 0)); in ZEND_FUNCTION()
1488 mpz_ptr gmpnum_a; in ZEND_FUNCTION() local
1495 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
1497 RETVAL_BOOL((mpz_perfect_power_p(gmpnum_a) != 0)); in ZEND_FUNCTION()
1506 mpz_ptr gmpnum_a; in ZEND_FUNCTION() local
1514 FETCH_GMP_ZVAL(gmpnum_a, gmpnumber_arg, temp_a, 1); in ZEND_FUNCTION()
1516 RETVAL_LONG(mpz_probab_prime_p(gmpnum_a, (int)reps)); in ZEND_FUNCTION()
1539 mpz_ptr gmpnum_a, gmpnum_b, gmpnum_t, gmpnum_s, gmpnum_g; in ZEND_FUNCTION() local
1547 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
1559 mpz_gcdext(gmpnum_g, gmpnum_s, gmpnum_t, gmpnum_a, gmpnum_b); in ZEND_FUNCTION()
1569 mpz_ptr gmpnum_a, gmpnum_b, gmpnum_result; in ZEND_FUNCTION() local
1577 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
1589 res = mpz_invert(gmpnum_result, gmpnum_a, gmpnum_b); in ZEND_FUNCTION()
1603 mpz_ptr gmpnum_a, gmpnum_b; in ZEND_FUNCTION() local
1610 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
1613 RETVAL_LONG(mpz_jacobi(gmpnum_a, gmpnum_b)); in ZEND_FUNCTION()
1624 mpz_ptr gmpnum_a, gmpnum_b; in ZEND_FUNCTION() local
1631 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
1634 RETVAL_LONG(mpz_legendre(gmpnum_a, gmpnum_b)); in ZEND_FUNCTION()
1645 mpz_ptr gmpnum_a, gmpnum_b; in ZEND_FUNCTION() local
1658 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
1672 result = mpz_kronecker_si(gmpnum_a, (gmp_long) Z_LVAL_P(b_arg)); in ZEND_FUNCTION()
1674 result = mpz_kronecker(gmpnum_a, gmpnum_b); in ZEND_FUNCTION()
1702 mpz_ptr gmpnum_a; in ZEND_FUNCTION() local
1709 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
1711 RETVAL_LONG(mpz_sgn(gmpnum_a)); in ZEND_FUNCTION()
1885 mpz_ptr gmpnum_a; in ZEND_FUNCTION() local
1900 gmpnum_a = GET_GMP_FROM_ZVAL(a_arg); in ZEND_FUNCTION()
1903 mpz_setbit(gmpnum_a, index); in ZEND_FUNCTION()
1905 mpz_clrbit(gmpnum_a, index); in ZEND_FUNCTION()
1915 mpz_ptr gmpnum_a; in ZEND_FUNCTION() local
1926 gmpnum_a = GET_GMP_FROM_ZVAL(a_arg); in ZEND_FUNCTION()
1927 mpz_clrbit(gmpnum_a, index); in ZEND_FUNCTION()
1936 mpz_ptr gmpnum_a; in ZEND_FUNCTION() local
1948 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
1949 RETVAL_BOOL(mpz_tstbit(gmpnum_a, index)); in ZEND_FUNCTION()
1965 mpz_ptr gmpnum_a, gmpnum_b; in ZEND_FUNCTION() local
1972 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
1975 RETVAL_LONG(mpz_hamdist(gmpnum_a, gmpnum_b)); in ZEND_FUNCTION()
1986 mpz_ptr gmpnum_a; in ZEND_FUNCTION() local
1999 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
2001 RETVAL_LONG(mpz_scan0(gmpnum_a, start)); in ZEND_FUNCTION()
2010 mpz_ptr gmpnum_a; in ZEND_FUNCTION() local
2023 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
2025 RETVAL_LONG(mpz_scan1(gmpnum_a, start)); in ZEND_FUNCTION()