Module gmp_mpfr_sys::gmp [−][src]
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
mpf_t | See: |
mpq_t | See: |
mpz_t | See: |
randfnptr_t | The type for the |
randseed_t | The type for the |
randstate_t | See: |
Constants
CC | See: |
CFLAGS | See: |
LIMB_BITS | See: |
NAIL_BITS | See: |
NAIL_MASK | See: |
NUMB_BITS | See: |
NUMB_MASK | See: |
NUMB_MAX | See: |
VERSION | See: |
VERSION_MINOR | |
VERSION_PATCHLEVEL |
Statics
bits_per_limb | See: |
version | See: |
Functions
Type Definitions
allocate_function | See: |
bitcnt_t | See: |
exp_t | See: |
free_function | See: |
limb_t | See: |
reallocate_function | See: |
size_t | See: |