Module gmp_mpfr_sys::gmp

source ·
Expand description

Function and type bindings for the GMP library.

Examples

use gmp_mpfr_sys::gmp;
use std::mem;
unsafe {
    let mut z = mem::uninitialized();
    gmp::mpz_init(&mut z);
    gmp::mpz_set_ui(&mut z, 15);
    let u = gmp::mpz_get_ui(&z);
    assert_eq!(u, 15);
    gmp::mpz_clear(&mut z);
}

Structs

Constants

Statics

Functions

See: mpf_eq
Constant version of mpq_denref.
Constant version of mpq_numref.

Type Definitions