Docs.rs
gmp-sys-0.1.0
gmp-sys 0.1.0
Permalink
Docs.rs crate page
LGPL-3.0
Links
Repository
crates.io
Source
Owners
netvl
Dependencies
libc ^0.2
normal
Versions
0%
of the crate is documented
Platform
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
gmp_sys
0.1.0
All Items
Crate Items
Structs
Enums
Constants
Statics
Functions
Type Aliases
Crate
gmp_sys
Copy item path
Source
Structs
§
Struct_
Unnamed1
Struct_
Unnamed2
Struct_
Unnamed3
Struct_
Unnamed5
Union_
Unnamed6
Enums
§
Enum_
Unnamed7
Constants
§
GMP_
RAND_
ALG_
DEFAULT
GMP_
RAND_
ALG_
LC
Statics
§
__
gmp_
bits_
per_
limb
⚠
__
gmp_
errno
⚠
__
gmp_
version
⚠
Functions
§
__
gmp_
asprintf
⚠
__
gmp_
get_
memory_
functions
⚠
__
gmp_
printf
⚠
__
gmp_
randclear
⚠
__
gmp_
randinit
⚠
__
gmp_
randinit_
default
⚠
__
gmp_
randinit_
lc_
2exp
⚠
__
gmp_
randinit_
lc_
2exp_
size
⚠
__
gmp_
randinit_
mt
⚠
__
gmp_
randinit_
set
⚠
__
gmp_
randseed
⚠
__
gmp_
randseed_
ui
⚠
__
gmp_
scanf
⚠
__
gmp_
set_
memory_
functions
⚠
__
gmp_
snprintf
⚠
__
gmp_
sprintf
⚠
__
gmp_
sscanf
⚠
__
gmp_
urandomb_
ui
⚠
__
gmp_
urandomm_
ui
⚠
__
gmpf_
abs
⚠
__
gmpf_
add
⚠
__
gmpf_
add_
ui
⚠
__
gmpf_
ceil
⚠
__
gmpf_
clear
⚠
__
gmpf_
clears
⚠
__
gmpf_
cmp
⚠
__
gmpf_
cmp_
d
⚠
__
gmpf_
cmp_
si
⚠
__
gmpf_
cmp_
ui
⚠
__
gmpf_
cmp_
z
⚠
__
gmpf_
div
⚠
__
gmpf_
div_
2exp
⚠
__
gmpf_
div_
ui
⚠
__
gmpf_
dump
⚠
__
gmpf_
eq
⚠
__
gmpf_
fits_
sint_
p
⚠
__
gmpf_
fits_
slong_
p
⚠
__
gmpf_
fits_
sshort_
p
⚠
__
gmpf_
fits_
uint_
p
⚠
__
gmpf_
fits_
ulong_
p
⚠
__
gmpf_
fits_
ushort_
p
⚠
__
gmpf_
floor
⚠
__
gmpf_
get_
d
⚠
__
gmpf_
get_
d_
2exp
⚠
__
gmpf_
get_
default_
prec
⚠
__
gmpf_
get_
prec
⚠
__
gmpf_
get_
si
⚠
__
gmpf_
get_
str
⚠
__
gmpf_
get_
ui
⚠
__
gmpf_
init
⚠
__
gmpf_
init2
⚠
__
gmpf_
init_
set
⚠
__
gmpf_
init_
set_
d
⚠
__
gmpf_
init_
set_
si
⚠
__
gmpf_
init_
set_
str
⚠
__
gmpf_
init_
set_
ui
⚠
__
gmpf_
inits
⚠
__
gmpf_
integer_
p
⚠
__
gmpf_
mul
⚠
__
gmpf_
mul_
2exp
⚠
__
gmpf_
mul_
ui
⚠
__
gmpf_
neg
⚠
__
gmpf_
pow_
ui
⚠
__
gmpf_
random2
⚠
__
gmpf_
reldiff
⚠
__
gmpf_
set
⚠
__
gmpf_
set_
d
⚠
__
gmpf_
set_
default_
prec
⚠
__
gmpf_
set_
prec
⚠
__
gmpf_
set_
prec_
raw
⚠
__
gmpf_
set_
q
⚠
__
gmpf_
set_
si
⚠
__
gmpf_
set_
str
⚠
__
gmpf_
set_
ui
⚠
__
gmpf_
set_
z
⚠
__
gmpf_
size
⚠
__
gmpf_
sqrt
⚠
__
gmpf_
sqrt_
ui
⚠
__
gmpf_
sub
⚠
__
gmpf_
sub_
ui
⚠
__
gmpf_
swap
⚠
__
gmpf_
trunc
⚠
__
gmpf_
ui_
div
⚠
__
gmpf_
ui_
sub
⚠
__
gmpf_
urandomb
⚠
__
gmpn_
add
⚠
__
gmpn_
add_
1
⚠
__
gmpn_
add_
n
⚠
__
gmpn_
addmul_
1
⚠
__
gmpn_
and_
n
⚠
__
gmpn_
andn_
n
⚠
__
gmpn_
cmp
⚠
__
gmpn_
cnd_
add_
n
⚠
__
gmpn_
cnd_
sub_
n
⚠
__
gmpn_
cnd_
swap
⚠
__
gmpn_
com
⚠
__
gmpn_
copyd
⚠
__
gmpn_
copyi
⚠
__
gmpn_
div_
qr_
1
⚠
__
gmpn_
div_
qr_
2
⚠
__
gmpn_
divexact_
1
⚠
__
gmpn_
divexact_
by3c
⚠
__
gmpn_
divrem
⚠
__
gmpn_
divrem_
1
⚠
__
gmpn_
divrem_
2
⚠
__
gmpn_
gcd
⚠
__
gmpn_
gcd_
1
⚠
__
gmpn_
gcdext
⚠
__
gmpn_
gcdext_
1
⚠
__
gmpn_
get_
str
⚠
__
gmpn_
hamdist
⚠
__
gmpn_
ior_
n
⚠
__
gmpn_
iorn_
n
⚠
__
gmpn_
lshift
⚠
__
gmpn_
mod_
1
⚠
__
gmpn_
mul
⚠
__
gmpn_
mul_
1
⚠
__
gmpn_
mul_
n
⚠
__
gmpn_
nand_
n
⚠
__
gmpn_
neg
⚠
__
gmpn_
nior_
n
⚠
__
gmpn_
perfect_
power_
p
⚠
__
gmpn_
perfect_
square_
p
⚠
__
gmpn_
popcount
⚠
__
gmpn_
pow_
1
⚠
__
gmpn_
preinv_
mod_
1
⚠
__
gmpn_
random
⚠
__
gmpn_
random2
⚠
__
gmpn_
rshift
⚠
__
gmpn_
scan0
⚠
__
gmpn_
scan1
⚠
__
gmpn_
sec_
add_
1
⚠
__
gmpn_
sec_
add_
1_
itch
⚠
__
gmpn_
sec_
div_
qr
⚠
__
gmpn_
sec_
div_
qr_
itch
⚠
__
gmpn_
sec_
div_
r
⚠
__
gmpn_
sec_
div_
r_
itch
⚠
__
gmpn_
sec_
invert
⚠
__
gmpn_
sec_
invert_
itch
⚠
__
gmpn_
sec_
mul
⚠
__
gmpn_
sec_
mul_
itch
⚠
__
gmpn_
sec_
powm
⚠
__
gmpn_
sec_
powm_
itch
⚠
__
gmpn_
sec_
sqr
⚠
__
gmpn_
sec_
sqr_
itch
⚠
__
gmpn_
sec_
sub_
1
⚠
__
gmpn_
sec_
sub_
1_
itch
⚠
__
gmpn_
sec_
tabselect
⚠
__
gmpn_
set_
str
⚠
__
gmpn_
sizeinbase
⚠
__
gmpn_
sqr
⚠
__
gmpn_
sqrtrem
⚠
__
gmpn_
sub
⚠
__
gmpn_
sub_
1
⚠
__
gmpn_
sub_
n
⚠
__
gmpn_
submul_
1
⚠
__
gmpn_
tdiv_
qr
⚠
__
gmpn_
xnor_
n
⚠
__
gmpn_
xor_
n
⚠
__
gmpn_
zero
⚠
__
gmpn_
zero_
p
⚠
__
gmpq_
abs
⚠
__
gmpq_
add
⚠
__
gmpq_
canonicalize
⚠
__
gmpq_
clear
⚠
__
gmpq_
clears
⚠
__
gmpq_
cmp
⚠
__
gmpq_
cmp_
si
⚠
__
gmpq_
cmp_
ui
⚠
__
gmpq_
cmp_
z
⚠
__
gmpq_
div
⚠
__
gmpq_
div_
2exp
⚠
__
gmpq_
equal
⚠
__
gmpq_
get_
d
⚠
__
gmpq_
get_
den
⚠
__
gmpq_
get_
num
⚠
__
gmpq_
get_
str
⚠
__
gmpq_
init
⚠
__
gmpq_
inits
⚠
__
gmpq_
inv
⚠
__
gmpq_
mul
⚠
__
gmpq_
mul_
2exp
⚠
__
gmpq_
neg
⚠
__
gmpq_
set
⚠
__
gmpq_
set_
d
⚠
__
gmpq_
set_
den
⚠
__
gmpq_
set_
f
⚠
__
gmpq_
set_
num
⚠
__
gmpq_
set_
si
⚠
__
gmpq_
set_
str
⚠
__
gmpq_
set_
ui
⚠
__
gmpq_
set_
z
⚠
__
gmpq_
sub
⚠
__
gmpq_
swap
⚠
__
gmpz_
2fac_
ui
⚠
__
gmpz_
abs
⚠
__
gmpz_
add
⚠
__
gmpz_
add_
ui
⚠
__
gmpz_
addmul
⚠
__
gmpz_
addmul_
ui
⚠
__
gmpz_
and
⚠
__
gmpz_
array_
init
⚠
__
gmpz_
bin_
ui
⚠
__
gmpz_
bin_
uiui
⚠
__
gmpz_
cdiv_
q
⚠
__
gmpz_
cdiv_
q_
2exp
⚠
__
gmpz_
cdiv_
q_
ui
⚠
__
gmpz_
cdiv_
qr
⚠
__
gmpz_
cdiv_
qr_
ui
⚠
__
gmpz_
cdiv_
r
⚠
__
gmpz_
cdiv_
r_
2exp
⚠
__
gmpz_
cdiv_
r_
ui
⚠
__
gmpz_
cdiv_
ui
⚠
__
gmpz_
clear
⚠
__
gmpz_
clears
⚠
__
gmpz_
clrbit
⚠
__
gmpz_
cmp
⚠
__
gmpz_
cmp_
d
⚠
__
gmpz_
cmp_
si
⚠
__
gmpz_
cmp_
ui
⚠
__
gmpz_
cmpabs
⚠
__
gmpz_
cmpabs_
d
⚠
__
gmpz_
cmpabs_
ui
⚠
__
gmpz_
com
⚠
__
gmpz_
combit
⚠
__
gmpz_
congruent_
2exp_
p
⚠
__
gmpz_
congruent_
p
⚠
__
gmpz_
congruent_
ui_
p
⚠
__
gmpz_
divexact
⚠
__
gmpz_
divexact_
ui
⚠
__
gmpz_
divisible_
2exp_
p
⚠
__
gmpz_
divisible_
p
⚠
__
gmpz_
divisible_
ui_
p
⚠
__
gmpz_
dump
⚠
__
gmpz_
export
⚠
__
gmpz_
fac_
ui
⚠
__
gmpz_
fdiv_
q
⚠
__
gmpz_
fdiv_
q_
2exp
⚠
__
gmpz_
fdiv_
q_
ui
⚠
__
gmpz_
fdiv_
qr
⚠
__
gmpz_
fdiv_
qr_
ui
⚠
__
gmpz_
fdiv_
r
⚠
__
gmpz_
fdiv_
r_
2exp
⚠
__
gmpz_
fdiv_
r_
ui
⚠
__
gmpz_
fdiv_
ui
⚠
__
gmpz_
fib2_
ui
⚠
__
gmpz_
fib_
ui
⚠
__
gmpz_
fits_
sint_
p
⚠
__
gmpz_
fits_
slong_
p
⚠
__
gmpz_
fits_
sshort_
p
⚠
__
gmpz_
fits_
uint_
p
⚠
__
gmpz_
fits_
ulong_
p
⚠
__
gmpz_
fits_
ushort_
p
⚠
__
gmpz_
gcd
⚠
__
gmpz_
gcd_
ui
⚠
__
gmpz_
gcdext
⚠
__
gmpz_
get_
d
⚠
__
gmpz_
get_
d_
2exp
⚠
__
gmpz_
get_
si
⚠
__
gmpz_
get_
str
⚠
__
gmpz_
get_
ui
⚠
__
gmpz_
getlimbn
⚠
__
gmpz_
hamdist
⚠
__
gmpz_
import
⚠
__
gmpz_
init
⚠
__
gmpz_
init2
⚠
__
gmpz_
init_
set
⚠
__
gmpz_
init_
set_
d
⚠
__
gmpz_
init_
set_
si
⚠
__
gmpz_
init_
set_
str
⚠
__
gmpz_
init_
set_
ui
⚠
__
gmpz_
inits
⚠
__
gmpz_
invert
⚠
__
gmpz_
ior
⚠
__
gmpz_
jacobi
⚠
__
gmpz_
kronecker_
si
⚠
__
gmpz_
kronecker_
ui
⚠
__
gmpz_
lcm
⚠
__
gmpz_
lcm_
ui
⚠
__
gmpz_
limbs_
finish
⚠
__
gmpz_
limbs_
modify
⚠
__
gmpz_
limbs_
read
⚠
__
gmpz_
limbs_
write
⚠
__
gmpz_
lucnum2_
ui
⚠
__
gmpz_
lucnum_
ui
⚠
__
gmpz_
mfac_
uiui
⚠
__
gmpz_
millerrabin
⚠
__
gmpz_
mod
⚠
__
gmpz_
mul
⚠
__
gmpz_
mul_
2exp
⚠
__
gmpz_
mul_
si
⚠
__
gmpz_
mul_
ui
⚠
__
gmpz_
neg
⚠
__
gmpz_
nextprime
⚠
__
gmpz_
perfect_
power_
p
⚠
__
gmpz_
perfect_
square_
p
⚠
__
gmpz_
popcount
⚠
__
gmpz_
pow_
ui
⚠
__
gmpz_
powm
⚠
__
gmpz_
powm_
sec
⚠
__
gmpz_
powm_
ui
⚠
__
gmpz_
primorial_
ui
⚠
__
gmpz_
probab_
prime_
p
⚠
__
gmpz_
random
⚠
__
gmpz_
random2
⚠
__
gmpz_
realloc
⚠
__
gmpz_
realloc2
⚠
__
gmpz_
remove
⚠
__
gmpz_
roinit_
n
⚠
__
gmpz_
root
⚠
__
gmpz_
rootrem
⚠
__
gmpz_
rrandomb
⚠
__
gmpz_
scan0
⚠
__
gmpz_
scan1
⚠
__
gmpz_
set
⚠
__
gmpz_
set_
d
⚠
__
gmpz_
set_
f
⚠
__
gmpz_
set_
q
⚠
__
gmpz_
set_
si
⚠
__
gmpz_
set_
str
⚠
__
gmpz_
set_
ui
⚠
__
gmpz_
setbit
⚠
__
gmpz_
si_
kronecker
⚠
__
gmpz_
size
⚠
__
gmpz_
sizeinbase
⚠
__
gmpz_
sqrt
⚠
__
gmpz_
sqrtrem
⚠
__
gmpz_
sub
⚠
__
gmpz_
sub_
ui
⚠
__
gmpz_
submul
⚠
__
gmpz_
submul_
ui
⚠
__
gmpz_
swap
⚠
__
gmpz_
tdiv_
q
⚠
__
gmpz_
tdiv_
q_
2exp
⚠
__
gmpz_
tdiv_
q_
ui
⚠
__
gmpz_
tdiv_
qr
⚠
__
gmpz_
tdiv_
qr_
ui
⚠
__
gmpz_
tdiv_
r
⚠
__
gmpz_
tdiv_
r_
2exp
⚠
__
gmpz_
tdiv_
r_
ui
⚠
__
gmpz_
tdiv_
ui
⚠
__
gmpz_
tstbit
⚠
__
gmpz_
ui_
kronecker
⚠
__
gmpz_
ui_
pow_
ui
⚠
__
gmpz_
ui_
sub
⚠
__
gmpz_
urandomb
⚠
__
gmpz_
urandomm
⚠
__
gmpz_
xor
⚠
Type Aliases
§
Enum_
Unnamed4
MP_INT
MP_RAT
__
gmp_
randstate_
struct
__
mpf_
struct
__
mpq_
struct
__
mpz_
struct
gmp_
randalg_
t
gmp_
randstate_
ptr
gmp_
randstate_
t
mp_
bitcnt_
t
mp_
exp_
t
mp_
limb_
signed_
t
mp_
limb_
t
mp_ptr
mp_
size_
t
mp_
srcptr
mpf_ptr
mpf_
srcptr
mpf_t
mpq_ptr
mpq_
srcptr
mpq_t
mpz_ptr
mpz_
srcptr
mpz_t