aboutsummaryrefslogtreecommitdiff
path: root/src/libtommath.cpp
blob: c1e1cfe34700b788e49634373a6fdd6026fed207 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
#include "libtommath/mp_2expt.c"
#include "libtommath/mp_abs.c"
#include "libtommath/mp_add.c"
#include "libtommath/mp_add_d.c"
#include "libtommath/mp_addmod.c"
#include "libtommath/mp_and.c"
#include "libtommath/mp_clamp.c"
#include "libtommath/mp_clear.c"
#include "libtommath/mp_clear_multi.c"
#include "libtommath/mp_cmp.c"
#include "libtommath/mp_cmp_d.c"
#include "libtommath/mp_cmp_mag.c"
#include "libtommath/mp_cnt_lsb.c"
#include "libtommath/mp_complement.c"
#include "libtommath/mp_copy.c"
#include "libtommath/mp_count_bits.c"
#include "libtommath/mp_cutoffs.c"
#include "libtommath/mp_div.c"
#include "libtommath/mp_div_2.c"
#include "libtommath/mp_div_2d.c"
#include "libtommath/mp_div_d.c"
#include "libtommath/mp_dr_is_modulus.c"
#include "libtommath/mp_dr_reduce.c"
#include "libtommath/mp_dr_setup.c"
#include "libtommath/mp_error_to_string.c"
#include "libtommath/mp_exch.c"
#include "libtommath/mp_expt_n.c"
// #include "libtommath/mp_exptmod.c"
// #include "libtommath/mp_exteuclid.c"
#include "libtommath/mp_fread.c"
#include "libtommath/mp_from_sbin.c"
#include "libtommath/mp_from_ubin.c"
#include "libtommath/mp_fwrite.c"
#include "libtommath/mp_gcd.c"
#include "libtommath/mp_get_double.c"
#include "libtommath/mp_get_i32.c"
#include "libtommath/mp_get_i64.c"
#include "libtommath/mp_get_l.c"
#include "libtommath/mp_get_mag_u32.c"
#include "libtommath/mp_get_mag_u64.c"
#include "libtommath/mp_get_mag_ul.c"
#include "libtommath/mp_grow.c"
#include "libtommath/mp_init.c"
#include "libtommath/mp_init_copy.c"
#include "libtommath/mp_init_i32.c"
#include "libtommath/mp_init_i64.c"
#include "libtommath/mp_init_l.c"
#include "libtommath/mp_init_multi.c"
#include "libtommath/mp_init_set.c"
#include "libtommath/mp_init_size.c"
#include "libtommath/mp_init_u32.c"
#include "libtommath/mp_init_u64.c"
#include "libtommath/mp_init_ul.c"
#include "libtommath/mp_invmod.c"
#include "libtommath/mp_is_square.c"
// #include "libtommath/mp_kronecker.c"
#include "libtommath/mp_lcm.c"
#include "libtommath/mp_log_n.c"
#include "libtommath/mp_lshd.c"
#include "libtommath/mp_mod.c"
#include "libtommath/mp_mod_2d.c"
// #include "libtommath/mp_montgomery_calc_normalization.c"
// #include "libtommath/mp_montgomery_reduce.c"
// #include "libtommath/mp_montgomery_setup.c"
#include "libtommath/mp_mul.c"
#include "libtommath/mp_mul_2.c"
#include "libtommath/mp_mul_2d.c"
#include "libtommath/mp_mul_d.c"
#include "libtommath/mp_mulmod.c"
#include "libtommath/mp_neg.c"
#include "libtommath/mp_or.c"
#include "libtommath/mp_pack.c"
#include "libtommath/mp_pack_count.c"
// #include "libtommath/mp_prime_fermat.c"
// #include "libtommath/mp_prime_frobenius_underwood.c"
// #include "libtommath/mp_prime_is_prime.c"
// #include "libtommath/mp_prime_miller_rabin.c"
// #include "libtommath/mp_prime_next_prime.c"
// #include "libtommath/mp_prime_rabin_miller_trials.c"
// #include "libtommath/mp_prime_rand.c"
// #include "libtommath/mp_prime_strong_lucas_selfridge.c"
#include "libtommath/mp_radix_size.c"
#include "libtommath/mp_radix_size_overestimate.c"
// #include "libtommath/mp_rand.c"
// #include "libtommath/mp_rand_source.c"
#include "libtommath/mp_read_radix.c"
// #include "libtommath/mp_reduce.c"
// #include "libtommath/mp_reduce_2k.c"
// #include "libtommath/mp_reduce_2k_l.c"
// #include "libtommath/mp_reduce_2k_setup.c"
// #include "libtommath/mp_reduce_2k_setup_l.c"
// #include "libtommath/mp_reduce_is_2k.c"
// #include "libtommath/mp_reduce_is_2k_l.c"
// #include "libtommath/mp_reduce_setup.c"
#include "libtommath/mp_root_n.c"
#include "libtommath/mp_rshd.c"
#include "libtommath/mp_sbin_size.c"
#include "libtommath/mp_set.c"
#include "libtommath/mp_set_double.c"
#include "libtommath/mp_set_i32.c"
#include "libtommath/mp_set_i64.c"
#include "libtommath/mp_set_l.c"
#include "libtommath/mp_set_u32.c"
#include "libtommath/mp_set_u64.c"
#include "libtommath/mp_set_ul.c"
#include "libtommath/mp_shrink.c"
#include "libtommath/mp_signed_rsh.c"
// #include "libtommath/mp_sqrmod.c"
#include "libtommath/mp_sqrt.c"
// #include "libtommath/mp_sqrtmod_prime.c"
#include "libtommath/mp_sub.c"
#include "libtommath/mp_sub_d.c"
#include "libtommath/mp_submod.c"
#include "libtommath/mp_to_radix.c"
#include "libtommath/mp_to_sbin.c"
#include "libtommath/mp_to_ubin.c"
#include "libtommath/mp_ubin_size.c"
#include "libtommath/mp_unpack.c"
#include "libtommath/mp_xor.c"
#include "libtommath/mp_zero.c"
#include "libtommath/s_mp_add.c"
#include "libtommath/s_mp_copy_digs.c"
#include "libtommath/s_mp_div_3.c"
#include "libtommath/s_mp_div_recursive.c"
#include "libtommath/s_mp_div_school.c"
#include "libtommath/s_mp_div_small.c"
// #include "libtommath/s_mp_exptmod.c"
// #include "libtommath/s_mp_exptmod_fast.c"
#include "libtommath/s_mp_get_bit.c"
#include "libtommath/s_mp_invmod.c"
#include "libtommath/s_mp_invmod_odd.c"
#include "libtommath/s_mp_log.c"
#include "libtommath/s_mp_log_2expt.c"
#include "libtommath/s_mp_log_d.c"
// #include "libtommath/s_mp_montgomery_reduce_comba.c"
#include "libtommath/s_mp_mul.c"
#include "libtommath/s_mp_mul_balance.c"
#include "libtommath/s_mp_mul_comba.c"
#include "libtommath/s_mp_mul_high.c"
#include "libtommath/s_mp_mul_high_comba.c"
#include "libtommath/s_mp_mul_karatsuba.c"
#include "libtommath/s_mp_mul_toom.c"
#include "libtommath/s_mp_prime_is_divisible.c"
#include "libtommath/s_mp_prime_tab.c"
#include "libtommath/s_mp_radix_map.c"
#include "libtommath/s_mp_radix_size_overestimate.c"
// #include "libtommath/s_mp_rand_platform.c"
#include "libtommath/s_mp_sqr.c"
#include "libtommath/s_mp_sqr_comba.c"
#include "libtommath/s_mp_sqr_karatsuba.c"
#include "libtommath/s_mp_sqr_toom.c"
#include "libtommath/s_mp_sub.c"
#include "libtommath/s_mp_zero_buf.c"
#include "libtommath/s_mp_zero_digs.c"