Lines Matching refs:gmpnum

181 static void gmp_strval(zval *result, mpz_t gmpnum, int base);
279 mpz_ptr gmpnum; in gmp_cast_object() local
282 gmpnum = GET_GMP_OBJECT_FROM_OBJ(readobj)->num; in gmp_cast_object()
283 gmp_strval(writeobj, gmpnum, 10); in gmp_cast_object()
286 gmpnum = GET_GMP_OBJECT_FROM_OBJ(readobj)->num; in gmp_cast_object()
287 ZVAL_LONG(writeobj, mpz_get_si(gmpnum)); in gmp_cast_object()
290 gmpnum = GET_GMP_OBJECT_FROM_OBJ(readobj)->num; in gmp_cast_object()
291 ZVAL_DOUBLE(writeobj, mpz_get_d(gmpnum)); in gmp_cast_object()
294 gmpnum = GET_GMP_OBJECT_FROM_OBJ(readobj)->num; in gmp_cast_object()
295 if (mpz_fits_slong_p(gmpnum)) { in gmp_cast_object()
296 ZVAL_LONG(writeobj, mpz_get_si(gmpnum)); in gmp_cast_object()
298 ZVAL_DOUBLE(writeobj, mpz_get_d(gmpnum)); in gmp_cast_object()
310 mpz_ptr gmpnum = GET_GMP_OBJECT_FROM_OBJ(obj)->num; in gmp_get_debug_info() local
316 gmp_strval(&zv, gmpnum, 10); in gmp_get_debug_info()
510 mpz_ptr gmpnum = GET_GMP_FROM_ZVAL(object); in gmp_serialize() local
517 gmp_strval(&zv, gmpnum, 10); in gmp_serialize()
535 mpz_ptr gmpnum; in gmp_unserialize() local
543 gmp_create(object, &gmpnum); in gmp_unserialize()
553 || convert_to_gmp(gmpnum, zv, 10, 0) == FAILURE in gmp_unserialize()
710 static void gmp_strval(zval *result, mpz_t gmpnum, int base) /* {{{ */ in gmp_strval() argument
715 num_len = mpz_sizeinbase(gmpnum, abs(base)); in gmp_strval()
716 if (mpz_sgn(gmpnum) < 0) { in gmp_strval()
721 mpz_get_str(ZSTR_VAL(str), base, gmpnum); in gmp_strval()
1097 mpz_ptr gmpnum; in ZEND_FUNCTION() local
1104 FETCH_GMP_ZVAL(gmpnum, gmpnumber_arg, temp_a, 1); in ZEND_FUNCTION()
1105 RETVAL_LONG(mpz_get_si(gmpnum)); in ZEND_FUNCTION()
1115 mpz_ptr gmpnum; in ZEND_FUNCTION() local
1129 FETCH_GMP_ZVAL(gmpnum, gmpnumber_arg, temp_a, 1); in ZEND_FUNCTION()
1131 gmp_strval(return_value, gmpnum, (int)base); in ZEND_FUNCTION()
1290 mpz_ptr gmpnum; in ZEND_FUNCTION() local
1293 FETCH_GMP_ZVAL(gmpnum, a_arg, temp_a, 1); in ZEND_FUNCTION()
1296 if (mpz_sgn(gmpnum) < 0) { in ZEND_FUNCTION()
1364 zend_ulong gmpnum; in ZEND_FUNCTION() local
1367 gmpnum = mpz_get_ui(gmpnum_base); in ZEND_FUNCTION()
1368 if ((log(gmpnum) * exp) > powmax) { in ZEND_FUNCTION()
2168 mpz_ptr gmpnum = GET_GMP_FROM_ZVAL(ZEND_THIS); in ZEND_METHOD() local
2169 gmp_strval(&zv, gmpnum, 16); in ZEND_METHOD()