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 = MaybeUninit::uninit();
gmp::mpz_init(z.as_mut_ptr());
let mut z = 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 the randstate_t
struct.
The type for the seed
field in the randstate_t
struct.
Constants
See: __GMP_CFLAGS
See: GMP_NUMB_MAX
Statics
Functions
See: gmp_fprintf
See: gmp_fscanf
Constant version of mpq_denref
.
Constant version of mpq_numref
.
See: gmp_printf
See: gmp_sprintf
See: gmp_sscanf
Type Definitions
See: mp_bitcnt_t