Lines Matching refs:gmpnumber
128 #define FETCH_GMP_ZVAL_DEP_DEP(gmpnumber, zval, temp, dep1, dep2, arg_pos) \ argument
130 gmpnumber = GET_GMP_FROM_ZVAL(zval); \
141 gmpnumber = temp.num; \
144 #define FETCH_GMP_ZVAL_DEP(gmpnumber, zval, temp, dep, arg_pos) \ argument
146 gmpnumber = GET_GMP_FROM_ZVAL(zval); \
156 gmpnumber = temp.num; \
159 #define FETCH_GMP_ZVAL(gmpnumber, zval, temp, arg_pos) \ argument
161 gmpnumber = GET_GMP_FROM_ZVAL(zval); \
170 gmpnumber = temp.num; \
173 #define INIT_GMP_RETVAL(gmpnumber) \ argument
174 gmp_create(return_value, &gmpnumber)
177 static zend_result convert_to_gmp(mpz_t gmpnumber, zval *val, zend_long base, uint32_t arg_pos);
619 static zend_result convert_to_gmp(mpz_t gmpnumber, zval *val, zend_long base, uint32_t arg_pos) in convert_to_gmp() argument
623 mpz_set_si(gmpnumber, Z_LVAL_P(val)); in convert_to_gmp()
626 return convert_zstr_to_gmp(gmpnumber, Z_STR_P(val), base, arg_pos); in convert_to_gmp()
641 mpz_set_si(gmpnumber, lval); in convert_to_gmp()
951 mpz_ptr gmpnumber; in ZEND_FUNCTION() local
966 INIT_GMP_RETVAL(gmpnumber); in ZEND_FUNCTION()
968 mpz_import(gmpnumber, data_len / size, order, size, endian, 0, data); in ZEND_FUNCTION()
979 mpz_ptr gmpnumber; in ZEND_FUNCTION() local
990 FETCH_GMP_ZVAL(gmpnumber, gmpnumber_arg, temp_a, 1); in ZEND_FUNCTION()
992 if (mpz_sgn(gmpnumber) == 0) { in ZEND_FUNCTION()
996 size_t count = (mpz_sizeinbase(gmpnumber, 2) + bits_per_word - 1) / bits_per_word; in ZEND_FUNCTION()
999 mpz_export(ZSTR_VAL(out_string), NULL, order, size, endian, 0, gmpnumber); in ZEND_FUNCTION()