Lines Matching refs:a_arg
184 static void gmp_cmp(zval *return_value, zval *a_arg, zval *b_arg, bool is_operator);
203 static inline void gmp_zval_binary_ui_op(zval *return_value, zval *a_arg, zval *b_arg, gmp_binary_o…
204 static inline void gmp_zval_binary_ui_op2(zval *return_value, zval *a_arg, zval *b_arg, gmp_binary_…
205 static inline void gmp_zval_unary_op(zval *return_value, zval *a_arg, gmp_unary_op_t gmp_op);
751 static void gmp_cmp(zval *return_value, zval *a_arg, zval *b_arg, bool is_operator) /* {{{ */ in gmp_cmp() argument
758 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, is_operator ? 0 : 1); in gmp_cmp()
783 static inline void gmp_zval_binary_ui_op(zval *return_value, zval *a_arg, zval *b_arg, gmp_binary_o… in gmp_zval_binary_ui_op() argument
788 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, is_operator ? 0 : 1); in gmp_zval_binary_ui_op()
833 static inline void gmp_zval_binary_ui_op2(zval *return_value, zval *a_arg, zval *b_arg, gmp_binary_… in gmp_zval_binary_ui_op2() argument
839 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in gmp_zval_binary_ui_op2()
885 zval *a_arg, *b_arg; in _gmp_binary_ui_op() local
887 if (zend_parse_parameters(ZEND_NUM_ARGS(), "zz", &a_arg, &b_arg) == FAILURE){ in _gmp_binary_ui_op()
892 return_value, a_arg, b_arg, gmp_op, gmp_ui_op, check_b_zero, /* is_operator */ false); in _gmp_binary_ui_op()
899 static inline void gmp_zval_unary_op(zval *return_value, zval *a_arg, gmp_unary_op_t gmp_op) in gmp_zval_unary_op() argument
904 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in gmp_zval_unary_op()
916 zval *a_arg; in _gmp_unary_op() local
918 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &a_arg) == FAILURE){ in _gmp_unary_op()
922 gmp_zval_unary_op(return_value, a_arg, gmp_op); in _gmp_unary_op()
929 zval *a_arg; in _gmp_unary_opl() local
933 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &a_arg) == FAILURE){ in _gmp_unary_opl()
937 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in _gmp_unary_opl()
1171 zval *a_arg, *b_arg; in ZEND_FUNCTION() local
1174 if (zend_parse_parameters(ZEND_NUM_ARGS(), "zz|l", &a_arg, &b_arg, &round) == FAILURE) { in ZEND_FUNCTION()
1180 gmp_zval_binary_ui_op2(return_value, a_arg, b_arg, mpz_tdiv_qr, mpz_tdiv_qr_ui, 1); in ZEND_FUNCTION()
1183 gmp_zval_binary_ui_op2(return_value, a_arg, b_arg, mpz_cdiv_qr, mpz_cdiv_qr_ui, 1); in ZEND_FUNCTION()
1186 gmp_zval_binary_ui_op2(return_value, a_arg, b_arg, mpz_fdiv_qr, mpz_fdiv_qr_ui, 1); in ZEND_FUNCTION()
1198 zval *a_arg, *b_arg; in ZEND_FUNCTION() local
1201 if (zend_parse_parameters(ZEND_NUM_ARGS(), "zz|l", &a_arg, &b_arg, &round) == FAILURE) { in ZEND_FUNCTION()
1208 return_value, a_arg, b_arg, mpz_tdiv_r, gmp_mpz_tdiv_r_ui, 1, /* is_operator */ false); in ZEND_FUNCTION()
1212 return_value, a_arg, b_arg, mpz_cdiv_r, gmp_mpz_cdiv_r_ui, 1, /* is_operator */ false); in ZEND_FUNCTION()
1216 return_value, a_arg, b_arg, mpz_fdiv_r, gmp_mpz_fdiv_r_ui, 1, /* is_operator */ false); in ZEND_FUNCTION()
1228 zval *a_arg, *b_arg; in ZEND_FUNCTION() local
1231 if (zend_parse_parameters(ZEND_NUM_ARGS(), "zz|l", &a_arg, &b_arg, &round) == FAILURE) { in ZEND_FUNCTION()
1238 return_value, a_arg, b_arg, mpz_tdiv_q, gmp_mpz_tdiv_q_ui, 1, /* is_operator */ false); in ZEND_FUNCTION()
1242 return_value, a_arg, b_arg, mpz_cdiv_q, gmp_mpz_cdiv_q_ui, 1, /* is_operator */ false); in ZEND_FUNCTION()
1246 return_value, a_arg, b_arg, mpz_fdiv_q, gmp_mpz_fdiv_q_ui, 1, /* is_operator */ false); in ZEND_FUNCTION()
1287 zval *a_arg; in ZEND_FUNCTION() local
1290 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &a_arg) == FAILURE){ in ZEND_FUNCTION()
1294 if (Z_TYPE_P(a_arg) == IS_LONG) { in ZEND_FUNCTION()
1295 if (Z_LVAL_P(a_arg) < 0) { in ZEND_FUNCTION()
1303 FETCH_GMP_ZVAL(gmpnum, a_arg, temp_a, 1); in ZEND_FUNCTION()
1313 mpz_fac_ui(gmpnum_result, zval_get_long(a_arg)); in ZEND_FUNCTION()
1441 zval *a_arg; in ZEND_FUNCTION() local
1445 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &a_arg) == FAILURE){ in ZEND_FUNCTION()
1449 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
1466 zval *a_arg; in ZEND_FUNCTION() local
1471 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &a_arg) == FAILURE){ in ZEND_FUNCTION()
1475 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
1498 zval *a_arg; in ZEND_FUNCTION() local
1503 if (zend_parse_parameters(ZEND_NUM_ARGS(), "zl", &a_arg, &nth) == FAILURE) { in ZEND_FUNCTION()
1512 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
1529 zval *a_arg; in ZEND_FUNCTION() local
1535 if (zend_parse_parameters(ZEND_NUM_ARGS(), "zl", &a_arg, &nth) == FAILURE) { in ZEND_FUNCTION()
1544 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
1576 zval *a_arg; in ZEND_FUNCTION() local
1580 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &a_arg) == FAILURE){ in ZEND_FUNCTION()
1584 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
1594 zval *a_arg; in ZEND_FUNCTION() local
1598 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &a_arg) == FAILURE){ in ZEND_FUNCTION()
1602 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
1645 zval *a_arg, *b_arg; in ZEND_FUNCTION() local
1650 if (zend_parse_parameters(ZEND_NUM_ARGS(), "zz", &a_arg, &b_arg) == FAILURE){ in ZEND_FUNCTION()
1654 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
1675 zval *a_arg, *b_arg; in ZEND_FUNCTION() local
1680 if (zend_parse_parameters(ZEND_NUM_ARGS(), "zz", &a_arg, &b_arg) == FAILURE){ in ZEND_FUNCTION()
1689 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
1713 zval *a_arg, *b_arg; in ZEND_FUNCTION() local
1717 if (zend_parse_parameters(ZEND_NUM_ARGS(), "zz", &a_arg, &b_arg) == FAILURE){ in ZEND_FUNCTION()
1721 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
1734 zval *a_arg, *b_arg; in ZEND_FUNCTION() local
1738 if (zend_parse_parameters(ZEND_NUM_ARGS(), "zz", &a_arg, &b_arg) == FAILURE){ in ZEND_FUNCTION()
1742 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
1755 zval *a_arg, *b_arg; in ZEND_FUNCTION() local
1761 if (zend_parse_parameters(ZEND_NUM_ARGS(), "zz", &a_arg, &b_arg) == FAILURE){ in ZEND_FUNCTION()
1765 if (Z_TYPE_P(a_arg) == IS_LONG && Z_TYPE_P(b_arg) != IS_LONG) { in ZEND_FUNCTION()
1769 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
1781 result = mpz_si_kronecker((gmp_long) Z_LVAL_P(a_arg), gmpnum_b); in ZEND_FUNCTION()
1798 zval *a_arg, *b_arg; in ZEND_FUNCTION() local
1800 if (zend_parse_parameters(ZEND_NUM_ARGS(), "zz", &a_arg, &b_arg) == FAILURE){ in ZEND_FUNCTION()
1804 gmp_cmp(return_value, a_arg, b_arg, /* is_operator */ false); in ZEND_FUNCTION()
1812 zval *a_arg; in ZEND_FUNCTION() local
1816 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &a_arg) == FAILURE){ in ZEND_FUNCTION()
1820 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
2003 zval *a_arg; in ZEND_FUNCTION() local
2008 if (zend_parse_parameters(ZEND_NUM_ARGS(), "Ol|b", &a_arg, gmp_ce, &index, &set) == FAILURE) { in ZEND_FUNCTION()
2021 gmpnum_a = GET_GMP_FROM_ZVAL(a_arg); in ZEND_FUNCTION()
2034 zval *a_arg; in ZEND_FUNCTION() local
2038 if (zend_parse_parameters(ZEND_NUM_ARGS(), "Ol", &a_arg, gmp_ce, &index) == FAILURE){ in ZEND_FUNCTION()
2047 gmpnum_a = GET_GMP_FROM_ZVAL(a_arg); in ZEND_FUNCTION()
2055 zval *a_arg; in ZEND_FUNCTION() local
2060 if (zend_parse_parameters(ZEND_NUM_ARGS(), "zl", &a_arg, &index) == FAILURE){ in ZEND_FUNCTION()
2069 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
2085 zval *a_arg, *b_arg; in ZEND_FUNCTION() local
2089 if (zend_parse_parameters(ZEND_NUM_ARGS(), "zz", &a_arg, &b_arg) == FAILURE){ in ZEND_FUNCTION()
2093 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
2106 zval *a_arg; in ZEND_FUNCTION() local
2111 if (zend_parse_parameters(ZEND_NUM_ARGS(), "zl", &a_arg, &start) == FAILURE){ in ZEND_FUNCTION()
2120 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()
2130 zval *a_arg; in ZEND_FUNCTION() local
2135 if (zend_parse_parameters(ZEND_NUM_ARGS(), "zl", &a_arg, &start) == FAILURE){ in ZEND_FUNCTION()
2144 FETCH_GMP_ZVAL(gmpnum_a, a_arg, temp_a, 1); in ZEND_FUNCTION()