/netbsd/external/lgpl3/gmp/dist/mini-gmp/ |
H A D | mini-gmp.h | 147 void mpz_add (mpz_t, const mpz_t, const mpz_t); 150 void mpz_sub (mpz_t, const mpz_t, const mpz_t); 154 void mpz_mul (mpz_t, const mpz_t, const mpz_t); 161 void mpz_cdiv_qr (mpz_t, mpz_t, const mpz_t, const mpz_t); 162 void mpz_fdiv_qr (mpz_t, mpz_t, const mpz_t, const mpz_t); 163 void mpz_tdiv_qr (mpz_t, mpz_t, const mpz_t, const mpz_t); 178 void mpz_mod (mpz_t, const mpz_t, const mpz_t); 205 void mpz_gcd (mpz_t, const mpz_t, const mpz_t); 206 void mpz_gcdext (mpz_t, mpz_t, mpz_t, const mpz_t, const mpz_t); 211 void mpz_sqrtrem (mpz_t, mpz_t, const mpz_t); [all …]
|
H A D | mini-gmp.c | 1985 mpz_add (mpz_t r, const mpz_t a, const mpz_t b) in mpz_add() 1998 mpz_sub (mpz_t r, const mpz_t a, const mpz_t b) in mpz_sub() 2035 mpz_mul (mpz_t r, const mpz_t u, const mpz_t v) in mpz_mul() 2264 mpz_cdiv_qr (mpz_t q, mpz_t r, const mpz_t n, const mpz_t d) in mpz_cdiv_qr() 2270 mpz_fdiv_qr (mpz_t q, mpz_t r, const mpz_t n, const mpz_t d) in mpz_fdiv_qr() 2276 mpz_tdiv_qr (mpz_t q, mpz_t r, const mpz_t n, const mpz_t d) in mpz_tdiv_qr() 2318 mpz_mod (mpz_t r, const mpz_t n, const mpz_t d) in mpz_mod() 2697 mpz_gcd (mpz_t g, const mpz_t u, const mpz_t v) in mpz_gcd() 2760 mpz_gcdext (mpz_t g, mpz_t s, mpz_t t, const mpz_t u, const mpz_t v) in mpz_gcdext() 3045 mpz_powm (mpz_t r, const mpz_t b, const mpz_t e, const mpz_t m) in mpz_powm() [all …]
|
/netbsd/external/lgpl3/gmp/dist/mini-gmp/tests/ |
H A D | mini-random.h | 23 void mini_urandomb (mpz_t, unsigned long); 24 void mini_rrandomb (mpz_t, unsigned long); 25 void mini_rrandomb_export (mpz_t r, void *dst, size_t *countp, 29 void mini_random_op2 (enum hex_random_op, unsigned long, mpz_t, mpz_t); 30 void mini_random_op3 (enum hex_random_op, unsigned long, mpz_t, mpz_t, mpz_t); 31 void mini_random_op4 (enum hex_random_op, unsigned long, mpz_t, mpz_t, mpz_t, mpz_t); 32 void mini_random_scan_op (enum hex_random_op, unsigned long, mpz_t, mp_bitcnt_t *, mp_bitcnt_t *); 33 void mini_random_bit_op (enum hex_random_op, unsigned long, mpz_t, mp_bitcnt_t *, mpz_t); 34 void mini_random_lucm_op (unsigned long, mpz_t, mpz_t, mpz_t,
|
H A D | mini-random.c | 26 set_str (mpz_t r, const char *s) in set_str() 36 mini_urandomb (mpz_t r, unsigned long bits) in mini_urandomb() 45 mini_rrandomb (mpz_t r, unsigned long bits) in mini_rrandomb() 54 mini_rrandomb_export (mpz_t r, void *dst, size_t *countp, in mini_rrandomb_export() 65 mpz_t a, mpz_t r) in mini_random_op2() 80 mpz_t a, mpz_t b, mpz_t r) in mini_random_op3() 98 mpz_t a, mpz_t b, mpz_t c, mpz_t d) in mini_random_op4() 119 mpz_t a, mp_bitcnt_t *b, mpz_t r) in mini_random_bit_op() 134 mpz_t a, mp_bitcnt_t *b, mp_bitcnt_t *r) in mini_random_scan_op() 145 mini_random_lucm_op (unsigned long maxbits, mpz_t v, mpz_t q, mpz_t m, in mini_random_lucm_op()
|
H A D | t-reuse.c | 28 void dump3 (const char *, mpz_t, mpz_t, mpz_t); 31 typedef void (*dss_func) (mpz_t, const mpz_t, const mpz_t); 32 typedef void (*dsi_func) (mpz_t, const mpz_t, unsigned long int); 34 typedef unsigned long int (*ddsi_div_func) (mpz_t, mpz_t, const mpz_t, unsigned long int); 35 typedef void (*ddss_div_func) (mpz_t, mpz_t, const mpz_t, const mpz_t); 36 typedef void (*ds_func) (mpz_t, const mpz_t); 40 mpz_xinvert (mpz_t r, const mpz_t a, const mpz_t b) in mpz_xinvert() 150 mpz_t in1, in2, in3; in testmain() 155 mpz_t t; in testmain() 158 mpz_t bs; in testmain() [all …]
|
H A D | t-div.c | 29 typedef void div_qr_func (mpz_t, mpz_t, const mpz_t, const mpz_t); 30 typedef unsigned long div_qr_ui_func (mpz_t, mpz_t, const mpz_t, unsigned long); 31 typedef void div_func (mpz_t, const mpz_t, const mpz_t); 32 typedef unsigned long div_x_ui_func (mpz_t, const mpz_t, unsigned long); 33 typedef unsigned long div_ui_func (const mpz_t, unsigned long); 39 mpz_t a, b, q, r, rq, rr; in testmain()
|
/netbsd/external/lgpl3/gmp/dist/tests/mpz/ |
H A D | t-mul.c | 28 void debug_mp (mpz_t); 29 static void refmpz_mul (mpz_t, const mpz_t, const mpz_t); 30 void dump_abort (int, const char *, mpz_t, mpz_t, mpz_t, mpz_t); 37 one (int i, mpz_t multiplicand, mpz_t multiplier) in one() 39 mpz_t product, ref_product; in one() 66 mpz_t op1, op2; in main() 71 mpz_t bs; in main() 142 refmpz_mul (mpz_t w, const mpz_t u, const mpz_t v) in refmpz_mul() 184 mpz_t op1, mpz_t op2, mpz_t product, mpz_t ref_product) in dump_abort() 203 debug_mp (mpz_t x) in debug_mp() [all …]
|
H A D | t-sqrtrem.c | 26 void dump_abort (mpz_t, mpz_t, mpz_t); 27 void debug_mp (mpz_t, int); 32 mpz_t x2; in main() 33 mpz_t x, rem; in main() 34 mpz_t temp, temp2; in main() 39 mpz_t bs; in main() 109 dump_abort (mpz_t x2, mpz_t x, mpz_t rem) in dump_abort() 119 debug_mp (mpz_t x, int base) in debug_mp()
|
H A D | t-gcd.c | 27 void one_test (mpz_t, mpz_t, mpz_t, int); 28 void debug_mp (mpz_t, int); 30 static int gcdext_valid_p (const mpz_t, const mpz_t, const mpz_t, const mpz_t); 65 mpz_t a, b, got, want; in check_data() 94 make_chain_operands (mpz_t ref, mpz_t a, mpz_t b, gmp_randstate_t rs, int nb1, int nb2, int chain_l… in make_chain_operands() 96 mpz_t bs, temp1, temp2; in make_chain_operands() 151 mpz_t bs, a, b, want; in check_kolmo1() 221 mpz_t op1, op2, ref; in main() 224 mpz_t bs; in main() 314 one_test (mpz_t op1, mpz_t op2, mpz_t ref, int i) in one_test() [all …]
|
H A D | t-remove.c | 27 void debug_mp (mpz_t); 28 unsigned long int mpz_refremove (mpz_t, const mpz_t, const mpz_t); 34 mpz_t t, dest, refdest, dividend, divisor; in main() 40 mpz_t bs; in main() 98 mpz_refremove (mpz_t dest, const mpz_t src, const mpz_t f) in mpz_refremove() 107 mpz_t rem, x; in mpz_refremove() 128 debug_mp (mpz_t x) in debug_mp() 134 mpz_t q; in debug_mp()
|
H A D | t-fdiv.c | 27 void dump_abort (mpz_t, mpz_t); 28 void debug_mp (mpz_t, int); 33 mpz_t dividend, divisor; in main() 34 mpz_t quotient, remainder; in main() 35 mpz_t quotient2, remainder2; in main() 36 mpz_t temp; in main() 41 mpz_t bs; in main() 134 dump_abort (mpz_t dividend, mpz_t divisor) in dump_abort() 143 debug_mp (mpz_t x, int base) in debug_mp()
|
H A D | t-tdiv.c | 27 void dump_abort (mpz_t, mpz_t); 28 void debug_mp (mpz_t, int); 33 mpz_t dividend, divisor; in main() 34 mpz_t quotient, remainder; in main() 35 mpz_t quotient2, remainder2; in main() 36 mpz_t temp; in main() 41 mpz_t bs; in main() 133 dump_abort (mpz_t dividend, mpz_t divisor) in dump_abort() 142 debug_mp (mpz_t x, int base) in debug_mp()
|
H A D | t-fdiv_ui.c | 27 void dump_abort (const char *, mpz_t, unsigned long); 28 void debug_mp (mpz_t, int); 33 mpz_t dividend; in main() 34 mpz_t quotient, remainder; in main() 35 mpz_t quotient2, remainder2; in main() 36 mpz_t temp; in main() 42 mpz_t bs; in main() 146 dump_abort (const char *str, mpz_t dividend, unsigned long divisor) in dump_abort() 155 debug_mp (mpz_t x, int base) in debug_mp()
|
H A D | t-tdiv_ui.c | 27 void dump_abort (const char *, mpz_t, unsigned long); 28 void debug_mp (mpz_t, int); 33 mpz_t dividend; in main() 34 mpz_t quotient, remainder; in main() 35 mpz_t quotient2, remainder2; in main() 36 mpz_t temp; in main() 42 mpz_t bs; in main() 146 dump_abort (const char *str, mpz_t dividend, unsigned long divisor) in dump_abort() 155 debug_mp (mpz_t x, int base) in debug_mp()
|
H A D | t-cdiv_ui.c | 27 void dump_abort (const char *, mpz_t, unsigned long); 28 void debug_mp (mpz_t, int); 33 mpz_t dividend; in main() 34 mpz_t quotient, remainder; in main() 35 mpz_t quotient2, remainder2; in main() 36 mpz_t temp; in main() 42 mpz_t bs; in main() 146 dump_abort (const char *str, mpz_t dividend, unsigned long divisor) in dump_abort() 155 debug_mp (mpz_t x, int base) in debug_mp()
|
/netbsd/external/lgpl3/gmp/dist/tests/rand/ |
H A D | gmpstat.h | 41 mpz_t X[], 61 spectral_test (mpf_t rop[], unsigned int T, mpz_t a, mpz_t m); 63 vz_dot (mpz_t rop, mpz_t V1[], mpz_t V2[], unsigned int n); 68 merit (mpf_t rop, unsigned int t, mpf_t v, mpz_t m); 70 merit_u (unsigned int t, mpf_t v, mpz_t m); 73 void zdiv_round (mpz_t rop, mpz_t n, mpz_t d);
|
/netbsd/external/lgpl3/mpfr/dist/src/ |
H A D | mpfr-mini-gmp.h | 65 int mpz_perfect_square_p (const mpz_t); 70 void mpz_addmul_ui (mpz_t, const mpz_t, unsigned long); 81 void mpz_urandomb (mpz_t, gmp_randstate_t, mp_bitcnt_t); 112 void mpz_submul (mpz_t, const mpz_t, const mpz_t); 117 void mpz_addmul (mpz_t, const mpz_t, const mpz_t); 131 void mpz_dump (mpz_t);
|
H A D | exp_2.c | 28 mpfr_exp2_aux (mpz_t, mpfr_srcptr, mpfr_prec_t, mpfr_exp_t *); 30 mpfr_exp2_aux2 (mpz_t, mpfr_srcptr, mpfr_prec_t, mpfr_exp_t *); 32 mpz_normalize (mpz_t, mpz_t, mpfr_exp_t); 34 mpz_normalize2 (mpz_t, mpz_t, mpfr_exp_t, mpfr_exp_t); 40 mpz_normalize (mpz_t rop, mpz_t z, mpfr_exp_t q) in mpz_normalize() 60 mpz_normalize2 (mpz_t rop, mpz_t z, mpfr_exp_t expz, mpfr_exp_t target) in mpz_normalize2() 85 mpz_t ss; in mpfr_exp_2() 276 mpfr_exp2_aux (mpz_t s, mpfr_srcptr r, mpfr_prec_t q, mpfr_exp_t *exps) in mpfr_exp2_aux() 280 mpz_t t, rr; in mpfr_exp2_aux() 353 mpz_t t, *R, rr, tmp; in mpfr_exp2_aux2() [all …]
|
/netbsd/external/lgpl3/gmp/dist/tests/mpn/ |
H A D | t-hgcd_appr.c | 28 static mp_size_t one_test (mpz_t, mpz_t, int); 35 mpz_t m[2][2]; 40 static int hgcd_ref (struct hgcd_ref *hgcd, mpz_t a, mpz_t b); 43 mpz_t, mpz_t, mp_size_t, struct hgcd_matrix *); 53 mpz_t bs; in main() 160 one_test (mpz_t a, mpz_t b, int i) in one_test() 309 sdiv_qr (mpz_t q, mpz_t r, mp_size_t s, const mpz_t a, const mpz_t b) in sdiv_qr() 322 hgcd_ref (struct hgcd_ref *hgcd, mpz_t a, mpz_t b) in hgcd_ref() 326 mpz_t q; in hgcd_ref() 400 hgcd_appr_valid_p (mpz_t a, mpz_t b, mp_size_t res0, in hgcd_appr_valid_p() [all …]
|
H A D | t-hgcd.c | 27 static mp_size_t one_test (mpz_t, mpz_t, int); 49 mpz_t m[2][2]; 54 static int hgcd_ref (struct hgcd_ref *, mpz_t, mpz_t); 63 mpz_t bs; in main() 182 one_test (mpz_t a, mpz_t b, int i) in one_test() 187 mpz_t ref_r0; in one_test() 188 mpz_t ref_r1; in one_test() 189 mpz_t hgcd_r0; in one_test() 304 sdiv_qr (mpz_t q, mpz_t r, mp_size_t s, const mpz_t a, const mpz_t b) in sdiv_qr() 317 hgcd_ref (struct hgcd_ref *hgcd, mpz_t a, mpz_t b) in hgcd_ref() [all …]
|
/netbsd/external/lgpl3/gmp/dist/ |
H A D | gen-trialdivtab.c | 52 int sumspills (mpz_t, mpz_t *, int); 53 void mpn_mod_1s_4p_cps (mpz_t [7], mpz_t); 57 mpz_t B; 63 mpz_t ppp, acc, inv, gmp_numb_max, tmp, Bhalf; in main() 64 mpz_t pre[7]; in main() 220 mpz_log2 (mpz_t x) in mpz_log2() 226 mpn_mod_1s_4p_cps (mpz_t cps[7], mpz_t bparm) in mpn_mod_1s_4p_cps() 228 mpz_t b, bi; in mpn_mod_1s_4p_cps() 230 mpz_t t; in mpn_mod_1s_4p_cps() 286 sumspills (mpz_t ppp, mpz_t *a, int n) in sumspills() [all …]
|
H A D | bootstrap.c | 92 mpz_preinv_invert (mpz_t inv, const mpz_t d, int numb_bits) in mpz_preinv_invert() 94 mpz_t t; in mpz_preinv_invert() 110 mpz_invert_2exp (mpz_t r, const mpz_t a, unsigned long n) in mpz_invert_2exp() 113 mpz_t inv, prod; in mpz_invert_2exp() 139 mpz_invert_ui_2exp (mpz_t r, unsigned long a, unsigned long n) in mpz_invert_ui_2exp() 141 mpz_t az; in mpz_invert_ui_2exp()
|
/netbsd/external/gpl3/gcc.old/dist/gcc/fortran/ |
H A D | data.h | 21 void gfc_get_section_index (gfc_array_ref *, mpz_t *, mpz_t *); 22 bool gfc_assign_data_value (gfc_expr *, gfc_expr *, mpz_t, mpz_t *); 23 void gfc_advance_section (mpz_t *, gfc_array_ref *, mpz_t *);
|
/netbsd/external/gpl3/gcc/dist/gcc/fortran/ |
H A D | data.h | 21 void gfc_get_section_index (gfc_array_ref *, mpz_t *, mpz_t *); 22 bool gfc_assign_data_value (gfc_expr *, gfc_expr *, mpz_t, mpz_t *); 23 void gfc_advance_section (mpz_t *, gfc_array_ref *, mpz_t *);
|
/netbsd/external/lgpl3/gmp/dist/demos/ |
H A D | primes.c | 64 void find_primes (unsigned char *, mpz_t, unsigned long, mpz_t); 65 void sieve_region (unsigned char *, mpz_t, unsigned long); 75 report (mpz_t prime) in report() 101 mpz_t fr, to; in main() 102 mpz_t fr2, to2; in main() 106 mpz_t tmp; in main() 107 mpz_t siev_sqr_lim; in main() 241 sieve_region (unsigned char *s, mpz_t fr, unsigned long rsize) in sieve_region() 246 mpz_t tmp; in sieve_region() 311 mpz_t siev_sqr_lim) in find_primes() [all …]
|