Lines Matching refs:gmpnum

181 static void gmp_strval(zval *result, mpz_t gmpnum, int base);
280 mpz_ptr gmpnum; in gmp_cast_object() local
283 gmpnum = GET_GMP_OBJECT_FROM_OBJ(readobj)->num; in gmp_cast_object()
284 gmp_strval(writeobj, gmpnum, 10); in gmp_cast_object()
287 gmpnum = GET_GMP_OBJECT_FROM_OBJ(readobj)->num; in gmp_cast_object()
288 ZVAL_LONG(writeobj, mpz_get_si(gmpnum)); in gmp_cast_object()
291 gmpnum = GET_GMP_OBJECT_FROM_OBJ(readobj)->num; in gmp_cast_object()
292 ZVAL_DOUBLE(writeobj, mpz_get_d(gmpnum)); in gmp_cast_object()
295 gmpnum = GET_GMP_OBJECT_FROM_OBJ(readobj)->num; in gmp_cast_object()
296 if (mpz_fits_slong_p(gmpnum)) { in gmp_cast_object()
297 ZVAL_LONG(writeobj, mpz_get_si(gmpnum)); in gmp_cast_object()
299 ZVAL_DOUBLE(writeobj, mpz_get_d(gmpnum)); in gmp_cast_object()
303 gmpnum = GET_GMP_OBJECT_FROM_OBJ(readobj)->num; in gmp_cast_object()
304 ZVAL_BOOL(writeobj, mpz_sgn(gmpnum) != 0); in gmp_cast_object()
315 mpz_ptr gmpnum = GET_GMP_OBJECT_FROM_OBJ(obj)->num; in gmp_get_debug_info() local
321 gmp_strval(&zv, gmpnum, 10); in gmp_get_debug_info()
514 mpz_ptr gmpnum = GET_GMP_FROM_ZVAL(object); in gmp_serialize() local
521 gmp_strval(&zv, gmpnum, 10); in gmp_serialize()
539 mpz_ptr gmpnum; in gmp_unserialize() local
547 gmp_create(object, &gmpnum); in gmp_unserialize()
557 || convert_zstr_to_gmp(gmpnum, Z_STR_P(zv), 10, 0) == FAILURE in gmp_unserialize()
720 static void gmp_strval(zval *result, mpz_t gmpnum, int base) /* {{{ */ in gmp_strval() argument
725 num_len = mpz_sizeinbase(gmpnum, abs(base)); in gmp_strval()
726 if (mpz_sgn(gmpnum) < 0) { in gmp_strval()
731 mpz_get_str(ZSTR_VAL(str), base, gmpnum); in gmp_strval()
1107 mpz_ptr gmpnum; in ZEND_FUNCTION() local
1114 FETCH_GMP_ZVAL(gmpnum, gmpnumber_arg, temp_a, 1); in ZEND_FUNCTION()
1115 RETVAL_LONG(mpz_get_si(gmpnum)); in ZEND_FUNCTION()
1125 mpz_ptr gmpnum; in ZEND_FUNCTION() local
1139 FETCH_GMP_ZVAL(gmpnum, gmpnumber_arg, temp_a, 1); in ZEND_FUNCTION()
1141 gmp_strval(return_value, gmpnum, (int)base); in ZEND_FUNCTION()
1300 mpz_ptr gmpnum; in ZEND_FUNCTION() local
1303 FETCH_GMP_ZVAL(gmpnum, a_arg, temp_a, 1); in ZEND_FUNCTION()
1306 if (mpz_sgn(gmpnum) < 0) { in ZEND_FUNCTION()
1374 zend_ulong gmpnum; in ZEND_FUNCTION() local
1377 gmpnum = mpz_get_ui(gmpnum_base); in ZEND_FUNCTION()
1378 if ((log(gmpnum) * exp) > powmax) { in ZEND_FUNCTION()
2182 mpz_ptr gmpnum = GET_GMP_FROM_ZVAL(ZEND_THIS); in ZEND_METHOD() local
2183 gmp_strval(&zv, gmpnum, 16); in ZEND_METHOD()