Lines Matching refs:gmpnum
334 static void gmp_strval(zval *result, mpz_t gmpnum, int base);
412 mpz_ptr gmpnum; in gmp_cast_object() local
415 gmpnum = GET_GMP_FROM_ZVAL(readobj); in gmp_cast_object()
416 gmp_strval(writeobj, gmpnum, 10); in gmp_cast_object()
419 gmpnum = GET_GMP_FROM_ZVAL(readobj); in gmp_cast_object()
420 ZVAL_LONG(writeobj, mpz_get_si(gmpnum)); in gmp_cast_object()
423 gmpnum = GET_GMP_FROM_ZVAL(readobj); in gmp_cast_object()
424 ZVAL_DOUBLE(writeobj, mpz_get_d(gmpnum)); in gmp_cast_object()
435 mpz_ptr gmpnum = GET_GMP_FROM_ZVAL(obj); in gmp_get_debug_info() local
441 gmp_strval(&zv, gmpnum, 10); in gmp_get_debug_info()
561 mpz_ptr gmpnum = GET_GMP_FROM_ZVAL(object); in gmp_serialize() local
568 gmp_strval(&zv, gmpnum, 10); in gmp_serialize()
586 mpz_ptr gmpnum; in gmp_unserialize() local
594 gmp_create(object, &gmpnum); in gmp_unserialize()
606 || convert_to_gmp(gmpnum, zv, 10) == FAILURE in gmp_unserialize()
755 static void gmp_strval(zval *result, mpz_t gmpnum, int base) /* {{{ */ in gmp_strval() argument
760 num_len = mpz_sizeinbase(gmpnum, abs(base)); in gmp_strval()
761 if (mpz_sgn(gmpnum) < 0) { in gmp_strval()
766 mpz_get_str(ZSTR_VAL(str), base, gmpnum); in gmp_strval()
1188 mpz_ptr gmpnum; in ZEND_FUNCTION() local
1202 FETCH_GMP_ZVAL(gmpnum, gmpnumber_arg, temp_a); in ZEND_FUNCTION()
1204 gmp_strval(return_value, gmpnum, (int)base); in ZEND_FUNCTION()