Module gmp_mpfr_sys::gmp
source · Expand description
Function and type bindings for the GMP library.
§Examples
use core::mem::MaybeUninit;
use gmp_mpfr_sys::gmp;
unsafe {
let mut z = {
let mut z = MaybeUninit::uninit();
gmp::mpz_init(z.as_mut_ptr());
z.assume_init()
};
gmp::mpz_set_ui(&mut z, 15);
let u = gmp::mpz_get_ui(&z);
assert_eq!(u, 15);
gmp::mpz_clear(&mut z);
}
Structs§
- See:
mpf_t
and Float Internals - See:
mpq_t
and Rational Internals - See:
mpz_t
and Integer Internals - The type for the
algdata
field in therandstate_t
struct. - The type for the
seed
field in therandstate_t
struct. - See:
gmp_randstate_t
Constants§
- See:
__GMP_CC
- See:
__GMP_CFLAGS
- See:
GMP_LIMB_BITS
- See:
GMP_NAIL_BITS
- See:
GMP_NAIL_MASK
- See:
GMP_NUMB_BITS
- See:
GMP_NUMB_MASK
- See:
GMP_NUMB_MAX
- See:
__GNU_MP_VERSION
Statics§
- See:
mp_bits_per_limb
- See:
gmp_version
Functions§
- See:
MPZ_ROINIT_N
- See:
_mpz_realloc
- See:
gmp_asprintf
- See:
gmp_fprintf
- See:
gmp_fscanf
- See:
mpf_abs
- See:
mpf_add
- See:
mpf_add_ui
- See:
mpf_ceil
- See:
mpf_clear
- See:
mpf_clears
- See:
mpn_cmp
- See:
mpf_cmp_d
- See:
mpf_cmp_si
- See:
mpf_cmp_ui
- See:
mpq_cmp_z
- See:
mpf_div
- See:
mpf_div_2exp
- See:
mpf_div_ui
- See:
mpf_eq
- See:
mpf_fits_sint_p
- See:
mpf_fits_slong_p
- See:
mpf_fits_sshort_p
- See:
mpf_fits_uint_p
- See:
mpf_fits_ulong_p
- See:
mpf_fits_ushort_p
- See:
mpf_floor
- See:
mpf_get_d
- See:
mpf_get_d_2exp
- See:
mpf_get_default_prec
- See:
mpf_get_prec
- See:
mpf_get_si
- See:
mpf_get_str
- See:
mpf_get_ui
- See:
mpf_init
- See:
mpf_init2
- See:
mpf_init_set
- See:
mpf_init_set_d
- See:
mpf_init_set_si
- See:
mpf_init_set_str
- See:
mpf_init_set_ui
- See:
mpf_inits
- See:
mpf_inp_str
- See:
mpf_integer_p
- See:
mpf_mul
- See:
mpf_mul_2exp
- See:
mpf_mul_ui
- See:
mpf_neg
- See:
mpf_out_str
- See:
mpf_pow_ui
- See:
mpf_random2
- See:
mpf_reldiff
- See:
mpf_set
- See:
mpf_set_default_prec
- See:
mpf_set_default_prec
- See:
mpf_set_prec
- See:
mpf_set_prec_raw
- See:
mpf_set_q
- See:
mpf_set_si
- See:
mpf_set_str
- See:
mpf_set_ui
- See:
mpf_set_z
- See:
mpf_sgn
- See:
mpf_sqrt
- See:
mpf_sqrt_ui
- See:
mpf_sub
- See:
mpf_sub_ui
- See:
mpf_swap
- See:
mpf_trunc
- See:
mpf_ui_div
- See:
mpf_ui_sub
- See:
mpf_urandomb
- See:
mpn_add
- See:
mpn_add_1
- See:
mpn_add_n
- See:
mpn_addmul_1
- See:
mpn_and_n
- See:
mpn_andn_n
- See:
mpn_cmp
- See:
mpn_cnd_add_n
- See:
mpn_cnd_sub_n
- See:
mpn_cnd_swap
- See:
mpn_com
- See:
mpn_copyd
- See:
mpn_copyi
- See:
mpn_divexact_1
- See:
mpn_divexact_by3
- See:
mpn_divexact_by3c
- See:
mpn_divmod_1
- See:
mpn_divrem_1
- See:
mpn_gcd
- See:
mpn_gcd_1
- See:
mpn_gcdext
- See:
mpn_get_str
- See:
mpn_hamdist
- See:
mpn_ior_n
- See:
mpn_iorn_n
- See:
mpn_lshift
- See:
mpn_divmod_1
- See:
mpn_mul
- See:
mpn_mul_1
- See:
mpn_mul_n
- See:
mpn_nand_n
- See:
mpn_neg
- See:
mpn_nior_n
- See:
mpn_perfect_square_p
- See:
mpn_popcount
- See:
mpn_random
- See:
mpn_random2
- See:
mpn_rshift
- See:
mpn_scan0
- See:
mpn_scan1
- See:
mpn_sec_add_1
- See:
mpn_sec_add_1
- See:
mpn_sec_div_qr
- See:
mpn_sec_div_qr_itch
- See:
mpn_sec_div_r
- See:
mpn_sec_div_r_itch
- See:
mpn_sec_invert
- See:
mpn_sec_invert_itch
- See:
mpn_sec_mul
- See:
mpn_sec_mul_itch
- See:
mpn_sec_powm
- See:
mpn_sec_powm_itch
- See:
mpn_sec_sqr
- See:
mpn_sec_sqr_itch
- See:
mpn_sec_sub_1
- See:
mpn_sec_sub_1
- See:
mpn_sec_tabselect
- See:
mpn_set_str
- See:
mpn_sizeinbase
- See:
mpn_sqr
- See:
mpn_sqrtrem
- See:
mpn_sub
- See:
mpn_sub_1
- See:
mpn_cnd_sub_n
- See:
mpn_submul_1
- See:
mpn_tdiv_qr
- See:
mpn_xnor_n
- See:
mpn_xor_n
- See:
mpn_zero
- See:
mpn_zero_p
- See:
mpq_abs
- See:
mpq_add
- See:
mpq_canonicalize
- See:
mpq_clear
- See:
mpq_clears
- See:
mpq_cmp
- See:
mpq_cmp_si
- See:
mpq_cmp_ui
- See:
mpq_cmp_z
- See:
mpq_denref
- Constant version of
mpq_denref
. - See:
mpq_div
- See:
mpq_div_2exp
- See:
mpq_equal
- See:
mpq_get_d
- See:
mpq_get_den
- See:
mpq_get_num
- See:
mpq_get_str
- See:
mpq_init
- See:
mpq_inits
- See:
mpq_inp_str
- See:
mpq_inv
- See:
mpq_mul
- See:
mpq_mul_2exp
- See:
mpq_neg
- See:
mpq_numref
- Constant version of
mpq_numref
. - See:
mpq_out_str
- See:
mpq_set
- See:
mpq_set_d
- See:
mpq_set_den
- See:
mpq_set_f
- See:
mpq_set_num
- See:
mpq_set_si
- See:
mpq_set_str
- See:
mpq_set_ui
- See:
mpq_set_z
- See:
mpq_sgn
- See:
mpq_sub
- See:
mpq_swap
- See:
mpz_2fac_ui
- See:
mpz_abs
- See:
mpz_add
- See:
mpz_add_ui
- See:
mpz_addmul
- See:
mpz_addmul_ui
- See:
mpz_and
- See:
mpz_bin_ui
- See:
mpz_bin_uiui
- See:
mpz_cdiv_q
- See:
mpz_cdiv_q_2exp
- See:
mpz_cdiv_q_ui
- See:
mpz_cdiv_qr
- See:
mpz_cdiv_qr_ui
- See:
mpz_cdiv_r
- See:
mpz_cdiv_r_2exp
- See:
mpz_cdiv_r_ui
- See:
mpz_cdiv_ui
- See:
mpz_clear
- See:
mpz_clears
- See:
mpz_clrbit
- See:
mpz_cmp
- See:
mpz_cmp_d
- See:
mpz_cmp_si
- See:
mpz_cmp_ui
- See:
mpz_cmpabs
- See:
mpz_cmpabs_d
- See:
mpz_cmpabs_ui
- See:
mpz_com
- See:
mpz_combit
- See:
mpz_congruent_2exp_p
- See:
mpz_congruent_p
- See:
mpz_congruent_ui_p
- See:
mpz_divexact
- See:
mpz_divexact_ui
- See:
mpz_divisible_2exp_p
- See:
mpz_divisible_p
- See:
mpz_divisible_ui_p
- See:
mpz_even_p
- See:
mpz_export
- See:
mpz_fac_ui
- See:
mpz_fdiv_q
- See:
mpz_fdiv_q_2exp
- See:
mpz_fdiv_q_ui
- See:
mpz_fdiv_qr
- See:
mpz_fdiv_qr_ui
- See:
mpz_fdiv_r
- See:
mpz_fdiv_r_2exp
- See:
mpz_fdiv_r_ui
- See:
mpz_fdiv_ui
- See:
mpz_fib2_ui
- See:
mpz_fib_ui
- See:
mpz_fits_sint_p
- See:
mpz_fits_slong_p
- See:
mpz_fits_sshort_p
- See:
mpz_fits_uint_p
- See:
mpz_fits_ulong_p
- See:
mpz_fits_ushort_p
- See:
mpz_gcd
- See:
mpz_gcd_ui
- See:
mpz_gcdext
- See:
mpz_get_d
- See:
mpz_get_d_2exp
- See:
mpz_get_si
- See:
mpz_get_str
- See:
mpz_get_ui
- See:
mpz_getlimbn
- See:
mpz_hamdist
- See:
mpz_import
- See:
mpz_init
- See:
mpz_init2
- See:
mpz_init_set
- See:
mpz_init_set_d
- See:
mpz_init_set_si
- See:
mpz_init_set_str
- See:
mpz_init_set_ui
- See:
mpz_inits
- See:
mpz_inp_raw
- See:
mpz_inp_str
- See:
mpz_invert
- See:
mpz_ior
- See:
mpz_jacobi
- See:
mpz_kronecker
- See:
mpz_kronecker_si
- See:
mpz_kronecker_ui
- See:
mpz_lcm
- See:
mpz_lcm_ui
- See:
mpz_legendre
- See:
mpz_limbs_finish
- See:
mpz_limbs_modify
- See:
mpz_limbs_read
- See:
mpz_limbs_write
- See:
mpz_lucnum2_ui
- See:
mpz_lucnum_ui
- See:
mpz_mfac_uiui
- See:
mpz_mod
- See:
mpz_mod_ui
- See:
mpz_mul
- See:
mpz_mul_2exp
- See:
mpz_mul_si
- See:
mpz_mul_ui
- See:
mpz_neg
- See:
mpz_nextprime
- See:
mpz_odd_p
- See:
mpz_out_raw
- See:
mpz_out_str
- See:
mpz_perfect_power_p
- See:
mpz_perfect_square_p
- See:
mpz_popcount
- See:
mpz_pow_ui
- See:
mpz_powm
- See:
mpz_powm_sec
- See:
mpz_powm_ui
- See:
mpz_prevprime
- See:
mpz_primorial_ui
- See:
mpz_probab_prime_p
- See:
mpz_random2
- See:
mpz_realloc2
- See:
mpz_remove
- See:
mpz_roinit_n
- See:
mpz_root
- See:
mpz_rootrem
- See:
mpz_rrandomb
- See:
mpz_scan0
- See:
mpz_scan1
- See:
mpz_set
- See:
mpz_set_d
- See:
mpz_set_f
- See:
mpz_set_q
- See:
mpz_set_si
- See:
mpz_set_str
- See:
mpz_set_ui
- See:
mpz_setbit
- See:
mpz_sgn
- See:
mpz_si_kronecker
- See:
mpz_size
- See:
mpz_sizeinbase
- See:
mpz_sqrt
- See:
mpz_sqrtrem
- See:
mpz_sub
- See:
mpz_sub_ui
- See:
mpz_submul
- See:
mpz_submul_ui
- See:
mpz_swap
- See:
mpz_tdiv_q
- See:
mpz_tdiv_q_2exp
- See:
mpz_tdiv_q_ui
- See:
mpz_tdiv_qr
- See:
mpz_tdiv_qr_ui
- See:
mpz_tdiv_r
- See:
mpz_tdiv_r_2exp
- See:
mpz_tdiv_r_ui
- See:
mpz_tdiv_ui
- See:
mpz_tstbit
- See:
mpz_ui_kronecker
- See:
mpz_ui_pow_ui
- See:
mpz_ui_sub
- See:
mpz_urandomb
- See:
mpz_urandomm
- See:
mpz_xor
- See:
gmp_printf
- See:
gmp_randclear
- See:
gmp_randinit_default
- See:
gmp_randinit_lc_2exp
- See:
gmp_randinit_mt
- See:
gmp_randinit_set
- See:
gmp_randseed
- See:
gmp_randseed_ui
- See:
gmp_scanf
- See:
gmp_snprintf
- See:
gmp_sprintf
- See:
gmp_sscanf
- See:
gmp_urandomb_ui
- See:
gmp_urandomm_ui
Type Aliases§
- See:
allocate_function
- See:
mp_bitcnt_t
- See:
mp_exp_t
- See:
free_function
- See:
mp_limb_t
- See:
mpf_ptr
- See:
mpf_srcptr
- See:
mpq_ptr
- See:
mpq_srcptr
- See:
mpz_ptr
- See:
mpz_srcptr
- See:
gmp_randstate_ptr
- See:
gmp_randstate_srcptr
- See:
reallocate_function
- See:
mp_size_t