Lines Matching refs:gmpnum_a
788 mpz_ptr gmpnum_a, gmpnum_b; in gmp_cmp() local
793 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a); in gmp_cmp()
803 res = mpz_cmp_si(gmpnum_a, Z_LVAL_P(b_arg)); in gmp_cmp()
805 res = mpz_cmp(gmpnum_a, gmpnum_b); in gmp_cmp()
820 mpz_ptr gmpnum_a, gmpnum_b, gmpnum_result; in gmp_zval_binary_ui_op() local
824 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a); in gmp_zval_binary_ui_op()
852 gmp_ui_op(gmpnum_result, gmpnum_a, (gmp_ulong) Z_LVAL_P(b_arg)); in gmp_zval_binary_ui_op()
854 gmp_op(gmpnum_result, gmpnum_a, gmpnum_b); in gmp_zval_binary_ui_op()
867 mpz_ptr gmpnum_a, gmpnum_b, gmpnum_result1, gmpnum_result2; in gmp_zval_binary_ui_op2() local
872 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a); in gmp_zval_binary_ui_op2()
906 gmp_ui_op(gmpnum_result1, gmpnum_result2, gmpnum_a, (gmp_ulong) Z_LVAL_P(b_arg)); in gmp_zval_binary_ui_op2()
908 gmp_op(gmpnum_result1, gmpnum_result2, gmpnum_a, gmpnum_b); in gmp_zval_binary_ui_op2()
936 mpz_ptr gmpnum_a, gmpnum_result; in gmp_zval_unary_op() local
939 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a); in gmp_zval_unary_op()
942 gmp_op(gmpnum_result, gmpnum_a); in gmp_zval_unary_op()
993 mpz_ptr gmpnum_a; in _gmp_unary_opl() local
1000 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a); in _gmp_unary_opl()
1001 RETVAL_LONG(gmp_op(gmpnum_a)); in _gmp_unary_opl()
1011 mpz_ptr gmpnum_a, gmpnum_b; in _gmp_binary_opl() local
1018 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a); in _gmp_binary_opl()
1021 RETVAL_LONG(gmp_op(gmpnum_a, gmpnum_b)); in _gmp_binary_opl()
1463 mpz_ptr gmpnum_a, gmpnum_result; in ZEND_FUNCTION() local
1470 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a); in ZEND_FUNCTION()
1472 if (mpz_sgn(gmpnum_a) < 0) { in ZEND_FUNCTION()
1479 mpz_sqrt(gmpnum_result, gmpnum_a); in ZEND_FUNCTION()
1489 mpz_ptr gmpnum_a, gmpnum_result1, gmpnum_result2; in ZEND_FUNCTION() local
1497 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a); in ZEND_FUNCTION()
1499 if (mpz_sgn(gmpnum_a) < 0) { in ZEND_FUNCTION()
1512 mpz_sqrtrem(gmpnum_result1, gmpnum_result2, gmpnum_a); in ZEND_FUNCTION()
1523 mpz_ptr gmpnum_a, gmpnum_result; in ZEND_FUNCTION() local
1535 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a); in ZEND_FUNCTION()
1537 if (nth % 2 == 0 && mpz_sgn(gmpnum_a) < 0) { in ZEND_FUNCTION()
1544 mpz_root(gmpnum_result, gmpnum_a, (gmp_ulong) nth); in ZEND_FUNCTION()
1555 mpz_ptr gmpnum_a, gmpnum_result1, gmpnum_result2; in ZEND_FUNCTION() local
1568 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a); in ZEND_FUNCTION()
1570 if (nth % 2 == 0 && mpz_sgn(gmpnum_a) < 0) { in ZEND_FUNCTION()
1586 mpz_rootrem(gmpnum_result1, gmpnum_result2, gmpnum_a, (gmp_ulong) nth); in ZEND_FUNCTION()
1588 mpz_root(gmpnum_result1, gmpnum_a, (gmp_ulong) nth); in ZEND_FUNCTION()
1590 mpz_sub(gmpnum_result2, gmpnum_a, gmpnum_result2); in ZEND_FUNCTION()
1602 mpz_ptr gmpnum_a; in ZEND_FUNCTION() local
1609 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a); in ZEND_FUNCTION()
1611 RETVAL_BOOL((mpz_perfect_square_p(gmpnum_a) != 0)); in ZEND_FUNCTION()
1621 mpz_ptr gmpnum_a; in ZEND_FUNCTION() local
1629 FETCH_GMP_ZVAL(gmpnum_a, gmpnumber_arg, temp_a); in ZEND_FUNCTION()
1631 RETVAL_LONG(mpz_probab_prime_p(gmpnum_a, (int)reps)); in ZEND_FUNCTION()
1649 mpz_ptr gmpnum_a, gmpnum_b, gmpnum_t, gmpnum_s, gmpnum_g; in ZEND_FUNCTION() local
1657 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a); in ZEND_FUNCTION()
1669 mpz_gcdext(gmpnum_g, gmpnum_s, gmpnum_t, gmpnum_a, gmpnum_b); in ZEND_FUNCTION()
1680 mpz_ptr gmpnum_a, gmpnum_b, gmpnum_result; in ZEND_FUNCTION() local
1688 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a); in ZEND_FUNCTION()
1692 res = mpz_invert(gmpnum_result, gmpnum_a, gmpnum_b); in ZEND_FUNCTION()
1738 mpz_ptr gmpnum_a; in ZEND_FUNCTION() local
1745 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a); in ZEND_FUNCTION()
1747 RETVAL_LONG(mpz_sgn(gmpnum_a)); in ZEND_FUNCTION()
1949 mpz_ptr gmpnum_a; in ZEND_FUNCTION() local
1964 gmpnum_a = GET_GMP_FROM_ZVAL(a_arg); in ZEND_FUNCTION()
1967 mpz_setbit(gmpnum_a, index); in ZEND_FUNCTION()
1969 mpz_clrbit(gmpnum_a, index); in ZEND_FUNCTION()
1980 mpz_ptr gmpnum_a; in ZEND_FUNCTION() local
1991 gmpnum_a = GET_GMP_FROM_ZVAL(a_arg); in ZEND_FUNCTION()
1992 mpz_clrbit(gmpnum_a, index); in ZEND_FUNCTION()
2002 mpz_ptr gmpnum_a; in ZEND_FUNCTION() local
2014 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a); in ZEND_FUNCTION()
2015 RETVAL_BOOL(mpz_tstbit(gmpnum_a, index)); in ZEND_FUNCTION()
2041 mpz_ptr gmpnum_a; in ZEND_FUNCTION() local
2054 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a); in ZEND_FUNCTION()
2056 RETVAL_LONG(mpz_scan0(gmpnum_a, start)); in ZEND_FUNCTION()
2066 mpz_ptr gmpnum_a; in ZEND_FUNCTION() local
2079 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a); in ZEND_FUNCTION()
2081 RETVAL_LONG(mpz_scan1(gmpnum_a, start)); in ZEND_FUNCTION()