QtBigInt
Loading...
Searching...
No Matches
mini-gmp.h File Reference
#include <stddef.h>
Include dependency graph for mini-gmp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  __mpz_struct
 

Macros

#define UN_USED(X)   (void)X
 
#define mpn_invert_limb(x)   mpn_invert_3by2 ((x), 0)
 
#define mpz_odd_p(z)   (((z)->_mp_size != 0) & (int) (z)->_mp_d[0])
 
#define mpz_even_p(z)   (! mpz_odd_p (z))
 
#define MPZ_ROINIT_N(xp, xs)   {{0, (xs),(xp) }}
 

Typedefs

typedef unsigned long long uIntMpz
 
typedef long long intMpz
 
typedef uIntMpz mp_limb_t
 
typedef intMpz mp_size_t
 
typedef uIntMpz mp_bitcnt_t
 
typedef mp_limb_tmp_ptr
 
typedef const mp_limb_tmp_srcptr
 
typedef __mpz_struct mpz_t[1]
 
typedef __mpz_structmpz_ptr
 
typedef const __mpz_structmpz_srcptr
 

Functions

void mp_set_memory_functions (void *(*)(size_t), void *(*)(void *, size_t, size_t), void(*)(void *, size_t))
 
void mp_get_memory_functions (void *(**)(size_t), void *(**)(void *, size_t, size_t), void(**)(void *, size_t))
 
void mpn_copyi (mp_ptr, mp_srcptr, mp_size_t)
 
void mpn_copyd (mp_ptr, mp_srcptr, mp_size_t)
 
void mpn_zero (mp_ptr, mp_size_t)
 
int mpn_cmp (mp_srcptr, mp_srcptr, mp_size_t)
 
int mpn_zero_p (mp_srcptr, mp_size_t)
 
mp_limb_t mpn_add_1 (mp_ptr, mp_srcptr, mp_size_t, mp_limb_t)
 
mp_limb_t mpn_add_n (mp_ptr, mp_srcptr, mp_srcptr, mp_size_t)
 
mp_limb_t mpn_add (mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t)
 
mp_limb_t mpn_sub_1 (mp_ptr, mp_srcptr, mp_size_t, mp_limb_t)
 
mp_limb_t mpn_sub_n (mp_ptr, mp_srcptr, mp_srcptr, mp_size_t)
 
mp_limb_t mpn_sub (mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t)
 
mp_limb_t mpn_mul_1 (mp_ptr, mp_srcptr, mp_size_t, mp_limb_t)
 
mp_limb_t mpn_addmul_1 (mp_ptr, mp_srcptr, mp_size_t, mp_limb_t)
 
mp_limb_t mpn_submul_1 (mp_ptr, mp_srcptr, mp_size_t, mp_limb_t)
 
mp_limb_t mpn_mul (mp_ptr, mp_srcptr, mp_size_t, mp_srcptr, mp_size_t)
 
void mpn_mul_n (mp_ptr, mp_srcptr, mp_srcptr, mp_size_t)
 
void mpn_sqr (mp_ptr, mp_srcptr, mp_size_t)
 
int mpn_perfect_square_p (mp_srcptr, mp_size_t)
 
mp_size_t mpn_sqrtrem (mp_ptr, mp_ptr, mp_srcptr, mp_size_t)
 
mp_limb_t mpn_lshift (mp_ptr, mp_srcptr, mp_size_t, unsigned int)
 
mp_limb_t mpn_rshift (mp_ptr, mp_srcptr, mp_size_t, unsigned int)
 
mp_bitcnt_t mpn_scan0 (mp_srcptr, mp_bitcnt_t)
 
mp_bitcnt_t mpn_scan1 (mp_srcptr, mp_bitcnt_t)
 
void mpn_com (mp_ptr, mp_srcptr, mp_size_t)
 
mp_limb_t mpn_neg (mp_ptr, mp_srcptr, mp_size_t)
 
mp_bitcnt_t mpn_popcount (mp_srcptr, mp_size_t)
 
mp_limb_t mpn_invert_3by2 (mp_limb_t, mp_limb_t)
 
size_t mpn_get_str (unsigned char *, int, mp_ptr, mp_size_t)
 
mp_size_t mpn_set_str (mp_ptr, const unsigned char *, size_t, int)
 
void mpz_init (mpz_t)
 
void mpz_init2 (mpz_t, mp_bitcnt_t)
 
void mpz_clear (mpz_t)
 
int mpz_sgn (const mpz_t)
 
int mpz_cmp_si (const mpz_t, intMpz)
 
int mpz_cmp_ui (const mpz_t, uIntMpz)
 
int mpz_cmp (const mpz_t, const mpz_t)
 
int mpz_cmpabs_ui (const mpz_t, uIntMpz)
 
int mpz_cmpabs (const mpz_t, const mpz_t)
 
int mpz_cmp_d (const mpz_t, double)
 
int mpz_cmpabs_d (const mpz_t, double)
 
void mpz_abs (mpz_t, const mpz_t)
 
void mpz_neg (mpz_t, const mpz_t)
 
void mpz_swap (mpz_t, mpz_t)
 
void mpz_add_ui (mpz_t, const mpz_t, uIntMpz)
 
void mpz_add (mpz_t, const mpz_t, const mpz_t)
 
void mpz_sub_ui (mpz_t, const mpz_t, uIntMpz)
 
void mpz_ui_sub (mpz_t, uIntMpz, const mpz_t)
 
void mpz_sub (mpz_t, const mpz_t, const mpz_t)
 
void mpz_mul_si (mpz_t, const mpz_t, intMpz)
 
void mpz_mul_ui (mpz_t, const mpz_t, uIntMpz)
 
void mpz_mul (mpz_t, const mpz_t, const mpz_t)
 
void mpz_mul_2exp (mpz_t, const mpz_t, mp_bitcnt_t)
 
void mpz_addmul_ui (mpz_t, const mpz_t, uIntMpz)
 
void mpz_addmul (mpz_t, const mpz_t, const mpz_t)
 
void mpz_submul_ui (mpz_t, const mpz_t, uIntMpz)
 
void mpz_submul (mpz_t, const mpz_t, const mpz_t)
 
void mpz_cdiv_qr (mpz_t, mpz_t, const mpz_t, const mpz_t)
 
void mpz_fdiv_qr (mpz_t, mpz_t, const mpz_t, const mpz_t)
 
void mpz_tdiv_qr (mpz_t, mpz_t, const mpz_t, const mpz_t)
 
void mpz_cdiv_q (mpz_t, const mpz_t, const mpz_t)
 
void mpz_fdiv_q (mpz_t, const mpz_t, const mpz_t)
 
void mpz_tdiv_q (mpz_t, const mpz_t, const mpz_t)
 
void mpz_cdiv_r (mpz_t, const mpz_t, const mpz_t)
 
void mpz_fdiv_r (mpz_t, const mpz_t, const mpz_t)
 
void mpz_tdiv_r (mpz_t, const mpz_t, const mpz_t)
 
void mpz_cdiv_q_2exp (mpz_t, const mpz_t, mp_bitcnt_t)
 
void mpz_fdiv_q_2exp (mpz_t, const mpz_t, mp_bitcnt_t)
 
void mpz_tdiv_q_2exp (mpz_t, const mpz_t, mp_bitcnt_t)
 
void mpz_cdiv_r_2exp (mpz_t, const mpz_t, mp_bitcnt_t)
 
void mpz_fdiv_r_2exp (mpz_t, const mpz_t, mp_bitcnt_t)
 
void mpz_tdiv_r_2exp (mpz_t, const mpz_t, mp_bitcnt_t)
 
void mpz_mod (mpz_t, const mpz_t, const mpz_t)
 
void mpz_divexact (mpz_t, const mpz_t, const mpz_t)
 
int mpz_divisible_p (const mpz_t, const mpz_t)
 
int mpz_congruent_p (const mpz_t, const mpz_t, const mpz_t)
 
uIntMpz mpz_cdiv_qr_ui (mpz_t, mpz_t, const mpz_t, uIntMpz)
 
uIntMpz mpz_fdiv_qr_ui (mpz_t, mpz_t, const mpz_t, uIntMpz)
 
uIntMpz mpz_tdiv_qr_ui (mpz_t, mpz_t, const mpz_t, uIntMpz)
 
uIntMpz mpz_cdiv_q_ui (mpz_t, const mpz_t, uIntMpz)
 
uIntMpz mpz_fdiv_q_ui (mpz_t, const mpz_t, uIntMpz)
 
uIntMpz mpz_tdiv_q_ui (mpz_t, const mpz_t, uIntMpz)
 
uIntMpz mpz_cdiv_r_ui (mpz_t, const mpz_t, uIntMpz)
 
uIntMpz mpz_fdiv_r_ui (mpz_t, const mpz_t, uIntMpz)
 
uIntMpz mpz_tdiv_r_ui (mpz_t, const mpz_t, uIntMpz)
 
uIntMpz mpz_cdiv_ui (const mpz_t, uIntMpz)
 
uIntMpz mpz_fdiv_ui (const mpz_t, uIntMpz)
 
uIntMpz mpz_tdiv_ui (const mpz_t, uIntMpz)
 
uIntMpz mpz_mod_ui (mpz_t, const mpz_t, uIntMpz)
 
void mpz_divexact_ui (mpz_t, const mpz_t, uIntMpz)
 
int mpz_divisible_ui_p (const mpz_t, uIntMpz)
 
uIntMpz mpz_gcd_ui (mpz_t, const mpz_t, uIntMpz)
 
void mpz_gcd (mpz_t, const mpz_t, const mpz_t)
 
void mpz_gcdext (mpz_t, mpz_t, mpz_t, const mpz_t, const mpz_t)
 
void mpz_lcm_ui (mpz_t, const mpz_t, uIntMpz)
 
void mpz_lcm (mpz_t, const mpz_t, const mpz_t)
 
int mpz_invert (mpz_t, const mpz_t, const mpz_t)
 
void mpz_sqrtrem (mpz_t, mpz_t, const mpz_t)
 
void mpz_sqrt (mpz_t, const mpz_t)
 
int mpz_perfect_square_p (const mpz_t)
 
void mpz_pow_ui (mpz_t, const mpz_t, uIntMpz)
 
void mpz_ui_pow_ui (mpz_t, uIntMpz, uIntMpz)
 
void mpz_powm (mpz_t, const mpz_t, const mpz_t, const mpz_t)
 
void mpz_powm_ui (mpz_t, const mpz_t, uIntMpz, const mpz_t)
 
void mpz_rootrem (mpz_t, mpz_t, const mpz_t, uIntMpz)
 
int mpz_root (mpz_t, const mpz_t, uIntMpz)
 
void mpz_fac_ui (mpz_t, uIntMpz)
 
void mpz_bin_uiui (mpz_t, uIntMpz, uIntMpz)
 
int mpz_probab_prime_p (const mpz_t, int)
 
int mpz_tstbit (const mpz_t, mp_bitcnt_t)
 
void mpz_setbit (mpz_t, mp_bitcnt_t)
 
void mpz_clrbit (mpz_t, mp_bitcnt_t)
 
void mpz_combit (mpz_t, mp_bitcnt_t)
 
void mpz_com (mpz_t, const mpz_t)
 
void mpz_and (mpz_t, const mpz_t, const mpz_t)
 
void mpz_ior (mpz_t, const mpz_t, const mpz_t)
 
void mpz_xor (mpz_t, const mpz_t, const mpz_t)
 
mp_bitcnt_t mpz_popcount (const mpz_t)
 
mp_bitcnt_t mpz_hamdist (const mpz_t, const mpz_t)
 
mp_bitcnt_t mpz_scan0 (const mpz_t, mp_bitcnt_t)
 
mp_bitcnt_t mpz_scan1 (const mpz_t, mp_bitcnt_t)
 
int mpz_fits_slong_p (const mpz_t)
 
int mpz_fits_ulong_p (const mpz_t)
 
intMpz mpz_get_si (const mpz_t)
 
uIntMpz mpz_get_ui (const mpz_t)
 
double mpz_get_d (const mpz_t)
 
size_t mpz_size (const mpz_t)
 
mp_limb_t mpz_getlimbn (const mpz_t, mp_size_t)
 
void mpz_realloc2 (mpz_t, mp_bitcnt_t)
 
mp_srcptr mpz_limbs_read (mpz_srcptr)
 
mp_ptr mpz_limbs_modify (mpz_t, mp_size_t)
 
mp_ptr mpz_limbs_write (mpz_t, mp_size_t)
 
void mpz_limbs_finish (mpz_t, mp_size_t)
 
mpz_srcptr mpz_roinit_n (mpz_t, mp_srcptr, mp_size_t)
 
void mpz_set_si (mpz_t, intMpz)
 
void mpz_set_ui (mpz_t, uIntMpz)
 
void mpz_set (mpz_t, const mpz_t)
 
void mpz_set_d (mpz_t, double)
 
void mpz_init_set_si (mpz_t, intMpz)
 
void mpz_init_set_ui (mpz_t, uIntMpz)
 
void mpz_init_set (mpz_t, const mpz_t)
 
void mpz_init_set_d (mpz_t, double)
 
size_t mpz_sizeinbase (const mpz_t, int)
 
char * mpz_get_str (char *, int, const mpz_t)
 
int mpz_set_str (mpz_t, const char *, int)
 
int mpz_init_set_str (mpz_t, const char *, int)
 
void mpz_import (mpz_t, size_t, int, size_t, int, size_t, const void *)
 
void * mpz_export (void *, size_t *, int, size_t, int, size_t, const mpz_t)
 

Variables

const int mp_bits_per_limb
 

Macro Definition Documentation

◆ mpn_invert_limb

#define mpn_invert_limb (   x)    mpn_invert_3by2 ((x), 0)

Definition at line 122 of file mini-gmp.h.

◆ mpz_even_p

#define mpz_even_p (   z)    (! mpz_odd_p (z))

Definition at line 132 of file mini-gmp.h.

◆ mpz_odd_p

#define mpz_odd_p (   z)    (((z)->_mp_size != 0) & (int) (z)->_mp_d[0])

Definition at line 131 of file mini-gmp.h.

◆ MPZ_ROINIT_N

#define MPZ_ROINIT_N (   xp,
  xs 
)    {{0, (xs),(xp) }}

Definition at line 259 of file mini-gmp.h.

◆ UN_USED

#define UN_USED (   X)    (void)X

Definition at line 48 of file mini-gmp.h.

Typedef Documentation

◆ intMpz

typedef long long intMpz

Definition at line 59 of file mini-gmp.h.

◆ mp_bitcnt_t

Definition at line 63 of file mini-gmp.h.

◆ mp_limb_t

typedef uIntMpz mp_limb_t

Definition at line 61 of file mini-gmp.h.

◆ mp_ptr

typedef mp_limb_t* mp_ptr

Definition at line 65 of file mini-gmp.h.

◆ mp_size_t

typedef intMpz mp_size_t

Definition at line 62 of file mini-gmp.h.

◆ mp_srcptr

typedef const mp_limb_t* mp_srcptr

Definition at line 66 of file mini-gmp.h.

◆ mpz_ptr

Definition at line 80 of file mini-gmp.h.

◆ mpz_srcptr

typedef const __mpz_struct* mpz_srcptr

Definition at line 81 of file mini-gmp.h.

◆ mpz_t

typedef __mpz_struct mpz_t[1]

Definition at line 78 of file mini-gmp.h.

◆ uIntMpz

typedef unsigned long long uIntMpz

Definition at line 58 of file mini-gmp.h.

Function Documentation

◆ mp_get_memory_functions()

void mp_get_memory_functions ( void *  **)(size_t,
void *  **)(void *, size_t, size_t,
void(**)(void *, size_t)   
)

◆ mp_set_memory_functions()

void mp_set_memory_functions ( void *  *)(size_t,
void *  *)(void *, size_t, size_t,
void(*)(void *, size_t)   
)

◆ mpn_add()

mp_limb_t mpn_add ( mp_ptr  rp,
mp_srcptr  ap,
mp_size_t  an,
mp_srcptr  bp,
mp_size_t  bn 
)

Definition at line 438 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpn_add_1()

mp_limb_t mpn_add_1 ( mp_ptr  rp,
mp_srcptr  ap,
mp_size_t  n,
mp_limb_t  b 
)

Definition at line 400 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpn_add_n()

mp_limb_t mpn_add_n ( mp_ptr  rp,
mp_srcptr  ap,
mp_srcptr  bp,
mp_size_t  n 
)

Definition at line 419 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpn_addmul_1()

mp_limb_t mpn_addmul_1 ( mp_ptr  rp,
mp_srcptr  up,
mp_size_t  n,
mp_limb_t  vl 
)

Definition at line 526 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpn_cmp()

int mpn_cmp ( mp_srcptr  ap,
mp_srcptr  bp,
mp_size_t  n 
)

Definition at line 359 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpn_com()

void mpn_com ( mp_ptr  rp,
mp_srcptr  up,
mp_size_t  n 
)

Definition at line 710 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpn_copyd()

void mpn_copyd ( mp_ptr  d,
mp_srcptr  s,
mp_size_t  n 
)

Definition at line 352 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpn_copyi()

void mpn_copyi ( mp_ptr  d,
mp_srcptr  s,
mp_size_t  n 
)

Definition at line 344 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpn_get_str()

size_t mpn_get_str ( unsigned char *  sp,
int  base,
mp_ptr  up,
mp_size_t  un 
)

Definition at line 1312 of file mini-gmp.c.

◆ mpn_invert_3by2()

mp_limb_t mpn_invert_3by2 ( mp_limb_t  u1,
mp_limb_t  u0 
)

Definition at line 739 of file mini-gmp.c.

◆ mpn_lshift()

mp_limb_t mpn_lshift ( mp_ptr  rp,
mp_srcptr  up,
mp_size_t  n,
unsigned int  cnt 
)

Definition at line 613 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpn_mul()

mp_limb_t mpn_mul ( mp_ptr  rp,
mp_srcptr  up,
mp_size_t  un,
mp_srcptr  vp,
mp_size_t  vn 
)

Definition at line 578 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpn_mul_1()

mp_limb_t mpn_mul_1 ( mp_ptr  rp,
mp_srcptr  up,
mp_size_t  n,
mp_limb_t  vl 
)

Definition at line 503 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpn_mul_n()

void mpn_mul_n ( mp_ptr  rp,
mp_srcptr  ap,
mp_srcptr  bp,
mp_size_t  n 
)

Definition at line 601 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpn_neg()

mp_limb_t mpn_neg ( mp_ptr  rp,
mp_srcptr  up,
mp_size_t  n 
)

Definition at line 717 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpn_perfect_square_p()

int mpn_perfect_square_p ( mp_srcptr  p,
mp_size_t  n 
)

Definition at line 3315 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpn_popcount()

mp_bitcnt_t mpn_popcount ( mp_srcptr  p,
mp_size_t  n 
)

Definition at line 3865 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpn_rshift()

mp_limb_t mpn_rshift ( mp_ptr  rp,
mp_srcptr  up,
mp_size_t  n,
unsigned int  cnt 
)

Definition at line 643 of file mini-gmp.c.

◆ mpn_scan0()

mp_bitcnt_t mpn_scan0 ( mp_srcptr  ptr,
mp_bitcnt_t  bit 
)

Definition at line 700 of file mini-gmp.c.

◆ mpn_scan1()

mp_bitcnt_t mpn_scan1 ( mp_srcptr  ptr,
mp_bitcnt_t  bit 
)

Definition at line 690 of file mini-gmp.c.

◆ mpn_set_str()

mp_size_t mpn_set_str ( mp_ptr  rp,
const unsigned char *  sp,
size_t  sn,
int  base 
)

Definition at line 1403 of file mini-gmp.c.

◆ mpn_sqr()

void mpn_sqr ( mp_ptr  rp,
mp_srcptr  ap,
mp_size_t  n 
)

Definition at line 607 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpn_sqrtrem()

mp_size_t mpn_sqrtrem ( mp_ptr  sp,
mp_ptr  rp,
mp_srcptr  p,
mp_size_t  n 
)

Definition at line 3325 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpn_sub()

mp_limb_t mpn_sub ( mp_ptr  rp,
mp_srcptr  ap,
mp_size_t  an,
mp_srcptr  bp,
mp_size_t  bn 
)

Definition at line 490 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpn_sub_1()

mp_limb_t mpn_sub_1 ( mp_ptr  rp,
mp_srcptr  ap,
mp_size_t  n,
mp_limb_t  b 
)

Definition at line 451 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpn_sub_n()

mp_limb_t mpn_sub_n ( mp_ptr  rp,
mp_srcptr  ap,
mp_srcptr  bp,
mp_size_t  n 
)

Definition at line 472 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpn_submul_1()

mp_limb_t mpn_submul_1 ( mp_ptr  rp,
mp_srcptr  up,
mp_size_t  n,
mp_limb_t  vl 
)

Definition at line 552 of file mini-gmp.c.

◆ mpn_zero()

void mpn_zero ( mp_ptr  rp,
mp_size_t  n 
)

Definition at line 393 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpn_zero_p()

int mpn_zero_p ( mp_srcptr  rp,
mp_size_t  n 
)

Definition at line 387 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_abs()

void mpz_abs ( mpz_t  r,
const  mpz_t 
)

Definition at line 1844 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpz_add()

void mpz_add ( mpz_t  r,
const  mpz_t,
const  mpz_t 
)

Definition at line 1993 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_add_ui()

void mpz_add_ui ( mpz_t  r,
const  mpz_t,
uIntMpz  b 
)

Definition at line 1919 of file mini-gmp.c.

◆ mpz_addmul()

void mpz_addmul ( mpz_t  r,
const  mpz_t,
const  mpz_t 
)

Definition at line 2150 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_addmul_ui()

void mpz_addmul_ui ( mpz_t  r,
const  mpz_t,
uIntMpz  v 
)

Definition at line 2130 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_and()

void mpz_and ( mpz_t  r,
const  mpz_t,
const  mpz_t 
)

Definition at line 3634 of file mini-gmp.c.

◆ mpz_bin_uiui()

void mpz_bin_uiui ( mpz_t  r,
uIntMpz  n,
uIntMpz  k 
)

Definition at line 3358 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_cdiv_q()

void mpz_cdiv_q ( mpz_t  q,
const  mpz_t,
const  mpz_t 
)

Definition at line 2305 of file mini-gmp.c.

◆ mpz_cdiv_q_2exp()

void mpz_cdiv_q_2exp ( mpz_t  r,
const  mpz_t,
mp_bitcnt_t  cnt 
)

Definition at line 2471 of file mini-gmp.c.

◆ mpz_cdiv_q_ui()

uIntMpz mpz_cdiv_q_ui ( mpz_t  q,
const  mpz_t,
uIntMpz  d 
)

Definition at line 2611 of file mini-gmp.c.

◆ mpz_cdiv_qr()

void mpz_cdiv_qr ( mpz_t  q,
mpz_t  r,
const  mpz_t,
const  mpz_t 
)

Definition at line 2287 of file mini-gmp.c.

◆ mpz_cdiv_qr_ui()

uIntMpz mpz_cdiv_qr_ui ( mpz_t  q,
mpz_t  r,
const  mpz_t,
uIntMpz  d 
)

Definition at line 2593 of file mini-gmp.c.

◆ mpz_cdiv_r()

void mpz_cdiv_r ( mpz_t  r,
const  mpz_t,
const  mpz_t 
)

Definition at line 2323 of file mini-gmp.c.

◆ mpz_cdiv_r_2exp()

void mpz_cdiv_r_2exp ( mpz_t  r,
const  mpz_t,
mp_bitcnt_t  cnt 
)

Definition at line 2489 of file mini-gmp.c.

◆ mpz_cdiv_r_ui()

uIntMpz mpz_cdiv_r_ui ( mpz_t  r,
const  mpz_t,
uIntMpz  d 
)

Definition at line 2629 of file mini-gmp.c.

◆ mpz_cdiv_ui()

uIntMpz mpz_cdiv_ui ( const  mpz_t,
uIntMpz  d 
)

Definition at line 2645 of file mini-gmp.c.

◆ mpz_clear()

void mpz_clear ( mpz_t  r)

Definition at line 1450 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_clrbit()

void mpz_clrbit ( mpz_t  d,
mp_bitcnt_t  bit_index 
)

Definition at line 3606 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_cmp()

int mpz_cmp ( const  mpz_t,
const  mpz_t 
)

Definition at line 1814 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpz_cmp_d()

int mpz_cmp_d ( const  mpz_t,
double  d 
)

Definition at line 1759 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_cmp_si()

int mpz_cmp_si ( const  mpz_t,
intMpz  v 
)

Definition at line 1786 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_cmp_ui()

int mpz_cmp_ui ( const  mpz_t,
uIntMpz  v 
)

Definition at line 1801 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpz_cmpabs()

int mpz_cmpabs ( const  mpz_t,
const  mpz_t 
)

Definition at line 1837 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_cmpabs_d()

int mpz_cmpabs_d ( const  mpz_t,
double  d 
)

Definition at line 1718 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_cmpabs_ui()

int mpz_cmpabs_ui ( const  mpz_t,
uIntMpz  v 
)

Definition at line 1828 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpz_com()

void mpz_com ( mpz_t  r,
const  mpz_t 
)

Definition at line 3627 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_combit()

void mpz_combit ( mpz_t  d,
mp_bitcnt_t  bit_index 
)

Definition at line 3618 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_congruent_p()

int mpz_congruent_p ( const  mpz_t,
const  mpz_t,
const  mpz_t 
)

Definition at line 2519 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_divexact()

void mpz_divexact ( mpz_t  q,
const  mpz_t,
const  mpz_t 
)

Definition at line 2507 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_divexact_ui()

void mpz_divexact_ui ( mpz_t  q,
const  mpz_t,
uIntMpz  d 
)

Definition at line 2669 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_divisible_p()

int mpz_divisible_p ( const  mpz_t,
const  mpz_t 
)

Definition at line 2513 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_divisible_ui_p()

int mpz_divisible_ui_p ( const  mpz_t,
uIntMpz  d 
)

Definition at line 2675 of file mini-gmp.c.

◆ mpz_export()

void * mpz_export ( void *  r,
size_t *  countp,
int  order,
size_t  size,
int  endian,
size_t  nails,
const  mpz_t 
)

Definition at line 4329 of file mini-gmp.c.

◆ mpz_fac_ui()

void mpz_fac_ui ( mpz_t  x,
uIntMpz  n 
)

Definition at line 3350 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpz_fdiv_q()

void mpz_fdiv_q ( mpz_t  q,
const  mpz_t,
const  mpz_t 
)

Definition at line 2311 of file mini-gmp.c.

◆ mpz_fdiv_q_2exp()

void mpz_fdiv_q_2exp ( mpz_t  r,
const  mpz_t,
mp_bitcnt_t  cnt 
)

Definition at line 2477 of file mini-gmp.c.

◆ mpz_fdiv_q_ui()

uIntMpz mpz_fdiv_q_ui ( mpz_t  q,
const  mpz_t,
uIntMpz  d 
)

Definition at line 2617 of file mini-gmp.c.

◆ mpz_fdiv_qr()

void mpz_fdiv_qr ( mpz_t  q,
mpz_t  r,
const  mpz_t,
const  mpz_t 
)

Definition at line 2293 of file mini-gmp.c.

◆ mpz_fdiv_qr_ui()

uIntMpz mpz_fdiv_qr_ui ( mpz_t  q,
mpz_t  r,
const  mpz_t,
uIntMpz  d 
)

Definition at line 2599 of file mini-gmp.c.

◆ mpz_fdiv_r()

void mpz_fdiv_r ( mpz_t  r,
const  mpz_t,
const  mpz_t 
)

Definition at line 2329 of file mini-gmp.c.

◆ mpz_fdiv_r_2exp()

void mpz_fdiv_r_2exp ( mpz_t  r,
const  mpz_t,
mp_bitcnt_t  cnt 
)

Definition at line 2495 of file mini-gmp.c.

◆ mpz_fdiv_r_ui()

uIntMpz mpz_fdiv_r_ui ( mpz_t  r,
const  mpz_t,
uIntMpz  d 
)

Definition at line 2634 of file mini-gmp.c.

◆ mpz_fdiv_ui()

uIntMpz mpz_fdiv_ui ( const  mpz_t,
uIntMpz  d 
)

Definition at line 2651 of file mini-gmp.c.

◆ mpz_fits_slong_p()

int mpz_fits_slong_p ( const  mpz_t)

Definition at line 1542 of file mini-gmp.c.

◆ mpz_fits_ulong_p()

int mpz_fits_ulong_p ( const  mpz_t)

Definition at line 1555 of file mini-gmp.c.

◆ mpz_gcd()

void mpz_gcd ( mpz_t  g,
const  mpz_t,
const  mpz_t 
)

Definition at line 2762 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpz_gcd_ui()

uIntMpz mpz_gcd_ui ( mpz_t  g,
const  mpz_t,
uIntMpz  v 
)

Definition at line 2726 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpz_gcdext()

void mpz_gcdext ( mpz_t  g,
mpz_t  s,
mpz_t  t,
const  mpz_t,
const  mpz_t 
)

Definition at line 2825 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpz_get_d()

double mpz_get_d ( const  mpz_t)

Definition at line 1696 of file mini-gmp.c.

◆ mpz_get_si()

intMpz mpz_get_si ( const  mpz_t)

Definition at line 1563 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_get_str()

char * mpz_get_str ( char *  sp,
int  base,
const  mpz_t 
)

Definition at line 4062 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpz_get_ui()

uIntMpz mpz_get_ui ( const  mpz_t)

Definition at line 1573 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_getlimbn()

mp_limb_t mpz_getlimbn ( const  mpz_t,
mp_size_t  n 
)

Definition at line 1585 of file mini-gmp.c.

◆ mpz_hamdist()

mp_bitcnt_t mpz_hamdist ( const  mpz_t,
const  mpz_t 
)

Definition at line 3890 of file mini-gmp.c.

◆ mpz_import()

void mpz_import ( mpz_t  r,
size_t  count,
int  order,
size_t  size,
int  endian,
size_t  nails,
const void *  src 
)

Definition at line 4261 of file mini-gmp.c.

◆ mpz_init()

void mpz_init ( mpz_t  r)

Definition at line 1425 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_init2()

void mpz_init2 ( mpz_t  r,
mp_bitcnt_t  bits 
)

Definition at line 1437 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_init_set()

void mpz_init_set ( mpz_t  r,
const  mpz_t 
)

Definition at line 1535 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_init_set_d()

void mpz_init_set_d ( mpz_t  r,
double  x 
)

Definition at line 1689 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_init_set_si()

void mpz_init_set_si ( mpz_t  r,
intMpz  x 
)

Definition at line 1521 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_init_set_str()

int mpz_init_set_str ( mpz_t  r,
const char *  sp,
int  base 
)

Definition at line 4231 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_init_set_ui()

void mpz_init_set_ui ( mpz_t  r,
uIntMpz  x 
)

Definition at line 1528 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpz_invert()

int mpz_invert ( mpz_t  r,
const  mpz_t,
const  mpz_t 
)

Definition at line 3043 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpz_ior()

void mpz_ior ( mpz_t  r,
const  mpz_t,
const  mpz_t 
)

Definition at line 3706 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_lcm()

void mpz_lcm ( mpz_t  r,
const  mpz_t,
const  mpz_t 
)

Definition at line 3007 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_lcm_ui()

void mpz_lcm_ui ( mpz_t  r,
const  mpz_t,
uIntMpz  v 
)

Definition at line 3028 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_limbs_finish()

void mpz_limbs_finish ( mpz_t  x,
mp_size_t  xs 
)

Definition at line 1619 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_limbs_modify()

mp_ptr mpz_limbs_modify ( mpz_t  x,
mp_size_t  n 
)

Definition at line 1606 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_limbs_read()

mp_srcptr mpz_limbs_read ( mpz_srcptr  x)

Definition at line 1600 of file mini-gmp.c.

◆ mpz_limbs_write()

mp_ptr mpz_limbs_write ( mpz_t  x,
mp_size_t  n 
)

Definition at line 1613 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_mod()

void mpz_mod ( mpz_t  r,
const  mpz_t,
const  mpz_t 
)

Definition at line 2341 of file mini-gmp.c.

◆ mpz_mod_ui()

uIntMpz mpz_mod_ui ( mpz_t  r,
const  mpz_t,
uIntMpz  d 
)

Definition at line 2663 of file mini-gmp.c.

◆ mpz_mul()

void mpz_mul ( mpz_t  r,
const  mpz_t,
const  mpz_t 
)

Definition at line 2058 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpz_mul_2exp()

void mpz_mul_2exp ( mpz_t  r,
const  mpz_t,
mp_bitcnt_t  bits 
)

Definition at line 2096 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpz_mul_si()

void mpz_mul_si ( mpz_t  r,
const  mpz_t,
intMpz  v 
)

Definition at line 2021 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_mul_ui()

void mpz_mul_ui ( mpz_t  r,
const  mpz_t,
uIntMpz  v 
)

Definition at line 2033 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpz_neg()

void mpz_neg ( mpz_t  r,
const  mpz_t 
)

Definition at line 1851 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpz_perfect_square_p()

int mpz_perfect_square_p ( const  mpz_t)

Definition at line 3306 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_popcount()

mp_bitcnt_t mpz_popcount ( const  mpz_t)

Definition at line 3877 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_pow_ui()

void mpz_pow_ui ( mpz_t  r,
const  mpz_t,
uIntMpz  e 
)

Definition at line 3078 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpz_powm()

void mpz_powm ( mpz_t  r,
const  mpz_t,
const  mpz_t,
const  mpz_t 
)

Definition at line 3106 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpz_powm_ui()

void mpz_powm_ui ( mpz_t  r,
const  mpz_t,
uIntMpz  elimb,
const  mpz_t 
)

Definition at line 3211 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_probab_prime_p()

int mpz_probab_prime_p ( const  mpz_t,
int  reps 
)

Definition at line 3413 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpz_realloc2()

void mpz_realloc2 ( mpz_t  x,
mp_bitcnt_t  n 
)

Definition at line 1594 of file mini-gmp.c.

◆ mpz_roinit_n()

mpz_srcptr mpz_roinit_n ( mpz_t  x,
mp_srcptr  xp,
mp_size_t  xs 
)

Definition at line 1627 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpz_root()

int mpz_root ( mpz_t  x,
const  mpz_t,
uIntMpz  z 
)

Definition at line 3279 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpz_rootrem()

void mpz_rootrem ( mpz_t  x,
mpz_t  r,
const  mpz_t,
uIntMpz  z 
)

Definition at line 3219 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpz_scan0()

mp_bitcnt_t mpz_scan0 ( const  mpz_t,
mp_bitcnt_t  starting_bit 
)

Definition at line 3977 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_scan1()

mp_bitcnt_t mpz_scan1 ( const  mpz_t,
mp_bitcnt_t  starting_bit 
)

Definition at line 3941 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpz_set()

void mpz_set ( mpz_t  r,
const  mpz_t 
)

Definition at line 1504 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpz_set_d()

void mpz_set_d ( mpz_t  r,
double  x 
)

Definition at line 1638 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_set_si()

void mpz_set_si ( mpz_t  r,
intMpz  x 
)

Definition at line 1480 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpz_set_str()

int mpz_set_str ( mpz_t  r,
const char *  sp,
int  base 
)

Definition at line 4127 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_set_ui()

void mpz_set_ui ( mpz_t  r,
uIntMpz  x 
)

Definition at line 1492 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_setbit()

void mpz_setbit ( mpz_t  d,
mp_bitcnt_t  bit_index 
)

Definition at line 3594 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpz_sgn()

int mpz_sgn ( const  mpz_t)

Definition at line 1780 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_size()

size_t mpz_size ( const  mpz_t)

Definition at line 1579 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_sizeinbase()

size_t mpz_sizeinbase ( const  mpz_t,
int  base 
)

Definition at line 4009 of file mini-gmp.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mpz_sqrt()

void mpz_sqrt ( mpz_t  s,
const  mpz_t 
)

Definition at line 3300 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_sqrtrem()

void mpz_sqrtrem ( mpz_t  s,
mpz_t  r,
const  mpz_t 
)

Definition at line 3294 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_sub()

void mpz_sub ( mpz_t  r,
const  mpz_t,
const  mpz_t 
)

Definition at line 2006 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_sub_ui()

void mpz_sub_ui ( mpz_t  r,
const  mpz_t,
uIntMpz  b 
)

Definition at line 1928 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_submul()

void mpz_submul ( mpz_t  r,
const  mpz_t,
const  mpz_t 
)

Definition at line 2160 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_submul_ui()

void mpz_submul_ui ( mpz_t  r,
const  mpz_t,
uIntMpz  v 
)

Definition at line 2140 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_swap()

void mpz_swap ( mpz_t  u,
mpz_t  v 
)

Definition at line 1858 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_tdiv_q()

void mpz_tdiv_q ( mpz_t  q,
const  mpz_t,
const  mpz_t 
)

Definition at line 2317 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_tdiv_q_2exp()

void mpz_tdiv_q_2exp ( mpz_t  r,
const  mpz_t,
mp_bitcnt_t  cnt 
)

Definition at line 2483 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_tdiv_q_ui()

uIntMpz mpz_tdiv_q_ui ( mpz_t  q,
const  mpz_t,
uIntMpz  d 
)

Definition at line 2623 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_tdiv_qr()

void mpz_tdiv_qr ( mpz_t  q,
mpz_t  r,
const  mpz_t,
const  mpz_t 
)

Definition at line 2299 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_tdiv_qr_ui()

uIntMpz mpz_tdiv_qr_ui ( mpz_t  q,
mpz_t  r,
const  mpz_t,
uIntMpz  d 
)

Definition at line 2605 of file mini-gmp.c.

◆ mpz_tdiv_r()

void mpz_tdiv_r ( mpz_t  r,
const  mpz_t,
const  mpz_t 
)

Definition at line 2335 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_tdiv_r_2exp()

void mpz_tdiv_r_2exp ( mpz_t  r,
const  mpz_t,
mp_bitcnt_t  cnt 
)

Definition at line 2501 of file mini-gmp.c.

◆ mpz_tdiv_r_ui()

uIntMpz mpz_tdiv_r_ui ( mpz_t  r,
const  mpz_t,
uIntMpz  d 
)

Definition at line 2639 of file mini-gmp.c.

◆ mpz_tdiv_ui()

uIntMpz mpz_tdiv_ui ( const  mpz_t,
uIntMpz  d 
)

Definition at line 2657 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_tstbit()

int mpz_tstbit ( const  mpz_t,
mp_bitcnt_t  bit_index 
)

Definition at line 3499 of file mini-gmp.c.

Here is the caller graph for this function:

◆ mpz_ui_pow_ui()

void mpz_ui_pow_ui ( mpz_t  r,
uIntMpz  blimb,
uIntMpz  e 
)

Definition at line 3099 of file mini-gmp.c.

Here is the call graph for this function:

◆ mpz_ui_sub()

void mpz_ui_sub ( mpz_t  r,
uIntMpz  a,
const  mpz_t 
)

Definition at line 1937 of file mini-gmp.c.

◆ mpz_xor()

void mpz_xor ( mpz_t  r,
const  mpz_t,
const  mpz_t 
)

Definition at line 3779 of file mini-gmp.c.

Here is the call graph for this function:

Variable Documentation

◆ mp_bits_per_limb

const int mp_bits_per_limb
extern

Definition at line 241 of file mini-gmp.c.