logo
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

The type for the algdata field in the randstate_t struct.

The type for the seed field in the randstate_t struct.

Constants

Statics

Functions

Constant version of mpq_denref.

Constant version of mpq_numref.

Type Definitions