mpq_t * GMP_PTR mpz_t * GMP_PTR mpf_t * GMP_PTR mpfr_t * GMP_PTR gmp_randstate_t * GMP_PTR INPUT GMP_PTR $var = INT2PTR($type, SvIVX(SvRV($arg)))