Debian Codegraph @

libtommath/tommath_class.h

raw
1 /* LibTomMath, multiple-precision integer library -- Tom St Denis */
2 /* SPDX-License-Identifier: Unlicense */
3
4 #if !(defined(LTM1) && defined(LTM2) && defined(LTM3))
5 #define LTM_INSIDE
6 #if defined(LTM2)
7 # define LTM3
8 #endif
9 #if defined(LTM1)
10 # define LTM2
11 #endif
12 #define LTM1
13 #if defined(LTM_ALL)
14 # define BN_CUTOFFS_C
15 # define BN_DEPRECATED_C
16 # define BN_MP_2EXPT_C
17 # define BN_MP_ABS_C
18 # define BN_MP_ADD_C
19 # define BN_MP_ADD_D_C
20 # define BN_MP_ADDMOD_C
21 # define BN_MP_AND_C
22 # define BN_MP_CLAMP_C
23 # define BN_MP_CLEAR_C
24 # define BN_MP_CLEAR_MULTI_C
25 # define BN_MP_CMP_C
26 # define BN_MP_CMP_D_C
27 # define BN_MP_CMP_MAG_C
28 # define BN_MP_CNT_LSB_C
29 # define BN_MP_COMPLEMENT_C
30 # define BN_MP_COPY_C
31 # define BN_MP_COUNT_BITS_C
32 # define BN_MP_DECR_C
33 # define BN_MP_DIV_C
34 # define BN_MP_DIV_2_C
35 # define BN_MP_DIV_2D_C
36 # define BN_MP_DIV_D_C
37 # define BN_MP_DR_IS_MODULUS_C
38 # define BN_MP_DR_REDUCE_C
39 # define BN_MP_DR_SETUP_C
40 # define BN_MP_ERROR_TO_STRING_C
41 # define BN_MP_EXCH_C
42 # define BN_MP_EXPT_N_C
43 # define BN_MP_EXPTMOD_C
44 # define BN_MP_EXTEUCLID_C
45 # define BN_MP_FREAD_C
46 # define BN_MP_FROM_SBIN_C
47 # define BN_MP_FROM_UBIN_C
48 # define BN_MP_FWRITE_C
49 # define BN_MP_GCD_C
50 # define BN_MP_GET_DOUBLE_C
51 # define BN_MP_GET_I32_C
52 # define BN_MP_GET_I64_C
53 # define BN_MP_GET_L_C
54 # define BN_MP_GET_MAG_U32_C
55 # define BN_MP_GET_MAG_U64_C
56 # define BN_MP_GET_MAG_UL_C
57 # define BN_MP_GROW_C
58 # define BN_MP_INCR_C
59 # define BN_MP_INIT_C
60 # define BN_MP_INIT_COPY_C
61 # define BN_MP_INIT_I32_C
62 # define BN_MP_INIT_I64_C
63 # define BN_MP_INIT_L_C
64 # define BN_MP_INIT_MULTI_C
65 # define BN_MP_INIT_SET_C
66 # define BN_MP_INIT_SIZE_C
67 # define BN_MP_INIT_U32_C
68 # define BN_MP_INIT_U64_C
69 # define BN_MP_INIT_UL_C
70 # define BN_MP_INVMOD_C
71 # define BN_MP_IS_SQUARE_C
72 # define BN_MP_ISEVEN_C
73 # define BN_MP_ISODD_C
74 # define BN_MP_KRONECKER_C
75 # define BN_MP_LCM_C
76 # define BN_MP_LOG_N_C
77 # define BN_MP_LSHD_C
78 # define BN_MP_MOD_C
79 # define BN_MP_MOD_2D_C
80 # define BN_MP_MOD_D_C
81 # define BN_MP_MONTGOMERY_CALC_NORMALIZATION_C
82 # define BN_MP_MONTGOMERY_REDUCE_C
83 # define BN_MP_MONTGOMERY_SETUP_C
84 # define BN_MP_MUL_C
85 # define BN_MP_MUL_2_C
86 # define BN_MP_MUL_2D_C
87 # define BN_MP_MUL_D_C
88 # define BN_MP_MULMOD_C
89 # define BN_MP_NEG_C
90 # define BN_MP_OR_C
91 # define BN_MP_PACK_C
92 # define BN_MP_PACK_COUNT_C
93 # define BN_MP_PRIME_FERMAT_C
94 # define BN_MP_PRIME_FROBENIUS_UNDERWOOD_C
95 # define BN_MP_PRIME_IS_PRIME_C
96 # define BN_MP_PRIME_MILLER_RABIN_C
97 # define BN_MP_PRIME_NEXT_PRIME_C
98 # define BN_MP_PRIME_RABIN_MILLER_TRIALS_C
99 # define BN_MP_PRIME_RAND_C
100 # define BN_MP_PRIME_STRONG_LUCAS_SELFRIDGE_C
101 # define BN_MP_RADIX_SIZE_C
102 # define BN_MP_RADIX_SMAP_C
103 # define BN_MP_RAND_C
104 # define BN_MP_READ_RADIX_C
105 # define BN_MP_REDUCE_C
106 # define BN_MP_REDUCE_2K_C
107 # define BN_MP_REDUCE_2K_L_C
108 # define BN_MP_REDUCE_2K_SETUP_C
109 # define BN_MP_REDUCE_2K_SETUP_L_C
110 # define BN_MP_REDUCE_IS_2K_C
111 # define BN_MP_REDUCE_IS_2K_L_C
112 # define BN_MP_REDUCE_SETUP_C
113 # define BN_MP_ROOT_N_C
114 # define BN_MP_RSHD_C
115 # define BN_MP_SBIN_SIZE_C
116 # define BN_MP_SET_C
117 # define BN_MP_SET_DOUBLE_C
118 # define BN_MP_SET_I32_C
119 # define BN_MP_SET_I64_C
120 # define BN_MP_SET_L_C
121 # define BN_MP_SET_U32_C
122 # define BN_MP_SET_U64_C
123 # define BN_MP_SET_UL_C
124 # define BN_MP_SHRINK_C
125 # define BN_MP_SIGNED_RSH_C
126 # define BN_MP_SQR_C
127 # define BN_MP_SQRMOD_C
128 # define BN_MP_SQRT_C
129 # define BN_MP_SQRTMOD_PRIME_C
130 # define BN_MP_SUB_C
131 # define BN_MP_SUB_D_C
132 # define BN_MP_SUBMOD_C
133 # define BN_MP_TO_RADIX_C
134 # define BN_MP_TO_SBIN_C
135 # define BN_MP_TO_UBIN_C
136 # define BN_MP_UBIN_SIZE_C
137 # define BN_MP_UNPACK_C
138 # define BN_MP_XOR_C
139 # define BN_MP_ZERO_C
140 # define BN_PRIME_TAB_C
141 # define BN_S_MP_ADD_C
142 # define BN_S_MP_BALANCE_MUL_C
143 # define BN_S_MP_DIV_3_C
144 # define BN_S_MP_EXPTMOD_C
145 # define BN_S_MP_EXPTMOD_FAST_C
146 # define BN_S_MP_GET_BIT_C
147 # define BN_S_MP_INVMOD_FAST_C
148 # define BN_S_MP_INVMOD_SLOW_C
149 # define BN_S_MP_KARATSUBA_MUL_C
150 # define BN_S_MP_KARATSUBA_SQR_C
151 # define BN_S_MP_LOG_C
152 # define BN_S_MP_LOG_2EXPT_C
153 # define BN_S_MP_LOG_D_C
154 # define BN_S_MP_MONTGOMERY_REDUCE_FAST_C
155 # define BN_S_MP_MUL_DIGS_C
156 # define BN_S_MP_MUL_DIGS_FAST_C
157 # define BN_S_MP_MUL_HIGH_DIGS_C
158 # define BN_S_MP_MUL_HIGH_DIGS_FAST_C
159 # define BN_S_MP_PRIME_IS_DIVISIBLE_C
160 # define BN_S_MP_RAND_JENKINS_C
161 # define BN_S_MP_RAND_PLATFORM_C
162 # define BN_S_MP_REVERSE_C
163 # define BN_S_MP_SQR_C
164 # define BN_S_MP_SQR_FAST_C
165 # define BN_S_MP_SUB_C
166 # define BN_S_MP_TOOM_MUL_C
167 # define BN_S_MP_TOOM_SQR_C
168 #endif
169 #endif
170 #if defined(BN_CUTOFFS_C)
171 #endif
172
173 #if defined(BN_DEPRECATED_C)
174 # define BN_FAST_MP_INVMOD_C
175 # define BN_FAST_MP_MONTGOMERY_REDUCE_C
176 # define BN_FAST_S_MP_MUL_DIGS_C
177 # define BN_FAST_S_MP_MUL_HIGH_DIGS_C
178 # define BN_FAST_S_MP_SQR_C
179 # define BN_MP_AND_C
180 # define BN_MP_BALANCE_MUL_C
181 # define BN_MP_CMP_D_C
182 # define BN_MP_DIV_3_C
183 # define BN_MP_EXPORT_C
184 # define BN_MP_EXPTMOD_FAST_C
185 # define BN_MP_EXPT_D_C
186 # define BN_MP_EXPT_D_EX_C
187 # define BN_MP_EXPT_N_C
188 # define BN_MP_EXPT_U32_C
189 # define BN_MP_FROM_SBIN_C
190 # define BN_MP_FROM_UBIN_C
191 # define BN_MP_GET_BIT_C
192 # define BN_MP_GET_INT_C
193 # define BN_MP_GET_LL_C
194 # define BN_MP_GET_LONG_C
195 # define BN_MP_GET_LONG_LONG_C
196 # define BN_MP_GET_MAG_U32_C
197 # define BN_MP_GET_MAG_U64_C
198 # define BN_MP_GET_MAG_ULL_C
199 # define BN_MP_GET_MAG_UL_C
200 # define BN_MP_IMPORT_C
201 # define BN_MP_INIT_LL_C
202 # define BN_MP_INIT_SET_INT_C
203 # define BN_MP_INIT_U32_C
204 # define BN_MP_INIT_ULL_C
205 # define BN_MP_INVMOD_SLOW_C
206 # define BN_MP_JACOBI_C
207 # define BN_MP_KARATSUBA_MUL_C
208 # define BN_MP_KARATSUBA_SQR_C
209 # define BN_MP_KRONECKER_C
210 # define BN_MP_LOG_N_C
211 # define BN_MP_LOG_U32_C
212 # define BN_MP_N_ROOT_C
213 # define BN_MP_N_ROOT_EX_C
214 # define BN_MP_OR_C
215 # define BN_MP_PACK_C
216 # define BN_MP_PRIME_IS_DIVISIBLE_C
217 # define BN_MP_PRIME_RANDOM_EX_C
218 # define BN_MP_RAND_DIGIT_C
219 # define BN_MP_READ_SIGNED_BIN_C
220 # define BN_MP_READ_UNSIGNED_BIN_C
221 # define BN_MP_ROOT_N_C
222 # define BN_MP_ROOT_U32_C
223 # define BN_MP_SBIN_SIZE_C
224 # define BN_MP_SET_INT_C
225 # define BN_MP_SET_LL_C
226 # define BN_MP_SET_LONG_C
227 # define BN_MP_SET_LONG_LONG_C
228 # define BN_MP_SET_U32_C
229 # define BN_MP_SET_U64_C
230 # define BN_MP_SET_ULL_C
231 # define BN_MP_SIGNED_BIN_SIZE_C
232 # define BN_MP_SIGNED_RSH_C
233 # define BN_MP_TC_AND_C
234 # define BN_MP_TC_DIV_2D_C
235 # define BN_MP_TC_OR_C
236 # define BN_MP_TC_XOR_C
237 # define BN_MP_TOOM_MUL_C
238 # define BN_MP_TOOM_SQR_C
239 # define BN_MP_TORADIX_C
240 # define BN_MP_TORADIX_N_C
241 # define BN_MP_TO_RADIX_C
242 # define BN_MP_TO_SBIN_C
243 # define BN_MP_TO_SIGNED_BIN_C
244 # define BN_MP_TO_SIGNED_BIN_N_C
245 # define BN_MP_TO_UBIN_C
246 # define BN_MP_TO_UNSIGNED_BIN_C
247 # define BN_MP_TO_UNSIGNED_BIN_N_C
248 # define BN_MP_UBIN_SIZE_C
249 # define BN_MP_UNPACK_C
250 # define BN_MP_UNSIGNED_BIN_SIZE_C
251 # define BN_MP_XOR_C
252 # define BN_S_MP_BALANCE_MUL_C
253 # define BN_S_MP_DIV_3_C
254 # define BN_S_MP_EXPTMOD_FAST_C
255 # define BN_S_MP_GET_BIT_C
256 # define BN_S_MP_INVMOD_FAST_C
257 # define BN_S_MP_INVMOD_SLOW_C
258 # define BN_S_MP_KARATSUBA_MUL_C
259 # define BN_S_MP_KARATSUBA_SQR_C
260 # define BN_S_MP_MONTGOMERY_REDUCE_FAST_C
261 # define BN_S_MP_MUL_DIGS_FAST_C
262 # define BN_S_MP_MUL_HIGH_DIGS_FAST_C
263 # define BN_S_MP_PRIME_IS_DIVISIBLE_C
264 # define BN_S_MP_PRIME_RANDOM_EX_C
265 # define BN_S_MP_RAND_SOURCE_C
266 # define BN_S_MP_REVERSE_C
267 # define BN_S_MP_SQR_FAST_C
268 # define BN_S_MP_TOOM_MUL_C
269 # define BN_S_MP_TOOM_SQR_C
270 #endif
271
272 #if defined(BN_MP_2EXPT_C)
273 # define BN_MP_GROW_C
274 # define BN_MP_ZERO_C
275 #endif
276
277 #if defined(BN_MP_ABS_C)
278 # define BN_MP_COPY_C
279 #endif
280
281 #if defined(BN_MP_ADD_C)
282 # define BN_MP_CMP_MAG_C
283 # define BN_S_MP_ADD_C
284 # define BN_S_MP_SUB_C
285 #endif
286
287 #if defined(BN_MP_ADD_D_C)
288 # define BN_MP_CLAMP_C
289 # define BN_MP_GROW_C
290 # define BN_MP_SUB_D_C
291 #endif
292
293 #if defined(BN_MP_ADDMOD_C)
294 # define BN_MP_ADD_C
295 # define BN_MP_CLEAR_C
296 # define BN_MP_INIT_C
297 # define BN_MP_MOD_C
298 #endif
299
300 #if defined(BN_MP_AND_C)
301 # define BN_MP_CLAMP_C
302 # define BN_MP_GROW_C
303 #endif
304
305 #if defined(BN_MP_CLAMP_C)
306 #endif
307
308 #if defined(BN_MP_CLEAR_C)
309 #endif
310
311 #if defined(BN_MP_CLEAR_MULTI_C)
312 # define BN_MP_CLEAR_C
313 #endif
314
315 #if defined(BN_MP_CMP_C)
316 # define BN_MP_CMP_MAG_C
317 #endif
318
319 #if defined(BN_MP_CMP_D_C)
320 #endif
321
322 #if defined(BN_MP_CMP_MAG_C)
323 #endif
324
325 #if defined(BN_MP_CNT_LSB_C)
326 #endif
327
328 #if defined(BN_MP_COMPLEMENT_C)
329 # define BN_MP_NEG_C
330 # define BN_MP_SUB_D_C
331 #endif
332
333 #if defined(BN_MP_COPY_C)
334 # define BN_MP_GROW_C
335 #endif
336
337 #if defined(BN_MP_COUNT_BITS_C)
338 #endif
339
340 #if defined(BN_MP_DECR_C)
341 # define BN_MP_INCR_C
342 # define BN_MP_SET_C
343 # define BN_MP_SUB_D_C
344 # define BN_MP_ZERO_C
345 #endif
346
347 #if defined(BN_MP_DIV_C)
348 # define BN_MP_ADD_C
349 # define BN_MP_CLAMP_C
350 # define BN_MP_CLEAR_C
351 # define BN_MP_CMP_C
352 # define BN_MP_CMP_MAG_C
353 # define BN_MP_COPY_C
354 # define BN_MP_COUNT_BITS_C
355 # define BN_MP_DIV_2D_C
356 # define BN_MP_EXCH_C
357 # define BN_MP_INIT_C
358 # define BN_MP_INIT_COPY_C
359 # define BN_MP_INIT_SIZE_C
360 # define BN_MP_LSHD_C
361 # define BN_MP_MUL_2D_C
362 # define BN_MP_MUL_D_C
363 # define BN_MP_RSHD_C
364 # define BN_MP_SUB_C
365 # define BN_MP_ZERO_C
366 #endif
367
368 #if defined(BN_MP_DIV_2_C)
369 # define BN_MP_CLAMP_C
370 # define BN_MP_GROW_C
371 #endif
372
373 #if defined(BN_MP_DIV_2D_C)
374 # define BN_MP_CLAMP_C
375 # define BN_MP_COPY_C
376 # define BN_MP_MOD_2D_C
377 # define BN_MP_RSHD_C
378 # define BN_MP_ZERO_C
379 #endif
380
381 #if defined(BN_MP_DIV_D_C)
382 # define BN_MP_CLAMP_C
383 # define BN_MP_CLEAR_C
384 # define BN_MP_COPY_C
385 # define BN_MP_DIV_2D_C
386 # define BN_MP_EXCH_C
387 # define BN_MP_INIT_SIZE_C
388 # define BN_S_MP_DIV_3_C
389 #endif
390
391 #if defined(BN_MP_DR_IS_MODULUS_C)
392 #endif
393
394 #if defined(BN_MP_DR_REDUCE_C)
395 # define BN_MP_CLAMP_C
396 # define BN_MP_CMP_MAG_C
397 # define BN_MP_GROW_C
398 # define BN_S_MP_SUB_C
399 #endif
400
401 #if defined(BN_MP_DR_SETUP_C)
402 #endif
403
404 #if defined(BN_MP_ERROR_TO_STRING_C)
405 #endif
406
407 #if defined(BN_MP_EXCH_C)
408 #endif
409
410 #if defined(BN_MP_EXPT_N_C)
411 # define BN_MP_CLEAR_C
412 # define BN_MP_INIT_COPY_C
413 # define BN_MP_MUL_C
414 # define BN_MP_SET_C
415 # define BN_MP_SQR_C
416 #endif
417
418 #if defined(BN_MP_EXPTMOD_C)
419 # define BN_MP_ABS_C
420 # define BN_MP_CLEAR_MULTI_C
421 # define BN_MP_DR_IS_MODULUS_C
422 # define BN_MP_INIT_MULTI_C
423 # define BN_MP_INVMOD_C
424 # define BN_MP_REDUCE_IS_2K_C
425 # define BN_MP_REDUCE_IS_2K_L_C
426 # define BN_S_MP_EXPTMOD_C
427 # define BN_S_MP_EXPTMOD_FAST_C
428 #endif
429
430 #if defined(BN_MP_EXTEUCLID_C)
431 # define BN_MP_CLEAR_MULTI_C
432 # define BN_MP_COPY_C
433 # define BN_MP_DIV_C
434 # define BN_MP_EXCH_C
435 # define BN_MP_INIT_MULTI_C
436 # define BN_MP_MUL_C
437 # define BN_MP_NEG_C
438 # define BN_MP_SET_C
439 # define BN_MP_SUB_C
440 #endif
441
442 #if defined(BN_MP_FREAD_C)
443 # define BN_MP_ADD_D_C
444 # define BN_MP_MUL_D_C
445 # define BN_MP_ZERO_C
446 #endif
447
448 #if defined(BN_MP_FROM_SBIN_C)
449 # define BN_MP_FROM_UBIN_C
450 #endif
451
452 #if defined(BN_MP_FROM_UBIN_C)
453 # define BN_MP_CLAMP_C
454 # define BN_MP_GROW_C
455 # define BN_MP_MUL_2D_C
456 # define BN_MP_ZERO_C
457 #endif
458
459 #if defined(BN_MP_FWRITE_C)
460 # define BN_MP_RADIX_SIZE_C
461 # define BN_MP_TO_RADIX_C
462 #endif
463
464 #if defined(BN_MP_GCD_C)
465 # define BN_MP_ABS_C
466 # define BN_MP_CLEAR_C
467 # define BN_MP_CMP_MAG_C
468 # define BN_MP_CNT_LSB_C
469 # define BN_MP_DIV_2D_C
470 # define BN_MP_EXCH_C
471 # define BN_MP_INIT_COPY_C
472 # define BN_MP_MUL_2D_C
473 # define BN_S_MP_SUB_C
474 #endif
475
476 #if defined(BN_MP_GET_DOUBLE_C)
477 #endif
478
479 #if defined(BN_MP_GET_I32_C)
480 # define BN_MP_GET_MAG_U32_C
481 #endif
482
483 #if defined(BN_MP_GET_I64_C)
484 # define BN_MP_GET_MAG_U64_C
485 #endif
486
487 #if defined(BN_MP_GET_L_C)
488 # define BN_MP_GET_MAG_UL_C
489 #endif
490
491 #if defined(BN_MP_GET_MAG_U32_C)
492 #endif
493
494 #if defined(BN_MP_GET_MAG_U64_C)
495 #endif
496
497 #if defined(BN_MP_GET_MAG_UL_C)
498 #endif
499
500 #if defined(BN_MP_GROW_C)
501 #endif
502
503 #if defined(BN_MP_INCR_C)
504 # define BN_MP_ADD_D_C
505 # define BN_MP_DECR_C
506 # define BN_MP_SET_C
507 #endif
508
509 #if defined(BN_MP_INIT_C)
510 #endif
511
512 #if defined(BN_MP_INIT_COPY_C)
513 # define BN_MP_CLEAR_C
514 # define BN_MP_COPY_C
515 # define BN_MP_INIT_SIZE_C
516 #endif
517
518 #if defined(BN_MP_INIT_I32_C)
519 # define BN_MP_INIT_C
520 # define BN_MP_SET_I32_C
521 #endif
522
523 #if defined(BN_MP_INIT_I64_C)
524 # define BN_MP_INIT_C
525 # define BN_MP_SET_I64_C
526 #endif
527
528 #if defined(BN_MP_INIT_L_C)
529 # define BN_MP_INIT_C
530 # define BN_MP_SET_L_C
531 #endif
532
533 #if defined(BN_MP_INIT_MULTI_C)
534 # define BN_MP_CLEAR_C
535 # define BN_MP_INIT_C
536 #endif
537
538 #if defined(BN_MP_INIT_SET_C)
539 # define BN_MP_INIT_C
540 # define BN_MP_SET_C
541 #endif
542
543 #if defined(BN_MP_INIT_SIZE_C)
544 #endif
545
546 #if defined(BN_MP_INIT_U32_C)
547 # define BN_MP_INIT_C
548 # define BN_MP_SET_U32_C
549 #endif
550
551 #if defined(BN_MP_INIT_U64_C)
552 # define BN_MP_INIT_C
553 # define BN_MP_SET_U64_C
554 #endif
555
556 #if defined(BN_MP_INIT_UL_C)
557 # define BN_MP_INIT_C
558 # define BN_MP_SET_UL_C
559 #endif
560
561 #if defined(BN_MP_INVMOD_C)
562 # define BN_MP_CMP_D_C
563 # define BN_S_MP_INVMOD_FAST_C
564 # define BN_S_MP_INVMOD_SLOW_C
565 #endif
566
567 #if defined(BN_MP_IS_SQUARE_C)
568 # define BN_MP_CLEAR_C
569 # define BN_MP_CMP_MAG_C
570 # define BN_MP_GET_I32_C
571 # define BN_MP_INIT_U32_C
572 # define BN_MP_MOD_C
573 # define BN_MP_MOD_D_C
574 # define BN_MP_SQRT_C
575 # define BN_MP_SQR_C
576 #endif
577
578 #if defined(BN_MP_ISEVEN_C)
579 #endif
580
581 #if defined(BN_MP_ISODD_C)
582 #endif
583
584 #if defined(BN_MP_KRONECKER_C)
585 # define BN_MP_CLEAR_C
586 # define BN_MP_CMP_D_C
587 # define BN_MP_CNT_LSB_C
588 # define BN_MP_COPY_C
589 # define BN_MP_DIV_2D_C
590 # define BN_MP_INIT_C
591 # define BN_MP_INIT_COPY_C
592 # define BN_MP_MOD_C
593 #endif
594
595 #if defined(BN_MP_LCM_C)
596 # define BN_MP_CLEAR_MULTI_C
597 # define BN_MP_CMP_MAG_C
598 # define BN_MP_DIV_C
599 # define BN_MP_GCD_C
600 # define BN_MP_INIT_MULTI_C
601 # define BN_MP_MUL_C
602 #endif
603
604 #if defined(BN_MP_LOG_N_C)
605 # define BN_S_MP_LOG_2EXPT_C
606 # define BN_S_MP_LOG_C
607 # define BN_S_MP_LOG_D_C
608 #endif
609
610 #if defined(BN_MP_LSHD_C)
611 # define BN_MP_GROW_C
612 #endif
613
614 #if defined(BN_MP_MOD_C)
615 # define BN_MP_ADD_C
616 # define BN_MP_CLEAR_C
617 # define BN_MP_DIV_C
618 # define BN_MP_EXCH_C
619 # define BN_MP_INIT_SIZE_C
620 #endif
621
622 #if defined(BN_MP_MOD_2D_C)
623 # define BN_MP_CLAMP_C
624 # define BN_MP_COPY_C
625 # define BN_MP_ZERO_C
626 #endif
627
628 #if defined(BN_MP_MOD_D_C)
629 # define BN_MP_DIV_D_C
630 #endif
631
632 #if defined(BN_MP_MONTGOMERY_CALC_NORMALIZATION_C)
633 # define BN_MP_2EXPT_C
634 # define BN_MP_CMP_MAG_C
635 # define BN_MP_COUNT_BITS_C
636 # define BN_MP_MUL_2_C
637 # define BN_MP_SET_C
638 # define BN_S_MP_SUB_C
639 #endif
640
641 #if defined(BN_MP_MONTGOMERY_REDUCE_C)
642 # define BN_MP_CLAMP_C
643 # define BN_MP_CMP_MAG_C
644 # define BN_MP_GROW_C
645 # define BN_MP_RSHD_C
646 # define BN_S_MP_MONTGOMERY_REDUCE_FAST_C
647 # define BN_S_MP_SUB_C
648 #endif
649
650 #if defined(BN_MP_MONTGOMERY_SETUP_C)
651 #endif
652
653 #if defined(BN_MP_MUL_C)
654 # define BN_S_MP_BALANCE_MUL_C
655 # define BN_S_MP_KARATSUBA_MUL_C
656 # define BN_S_MP_MUL_DIGS_C
657 # define BN_S_MP_MUL_DIGS_FAST_C
658 # define BN_S_MP_TOOM_MUL_C
659 #endif
660
661 #if defined(BN_MP_MUL_2_C)
662 # define BN_MP_GROW_C
663 #endif
664
665 #if defined(BN_MP_MUL_2D_C)
666 # define BN_MP_CLAMP_C
667 # define BN_MP_COPY_C
668 # define BN_MP_GROW_C
669 # define BN_MP_LSHD_C
670 #endif
671
672 #if defined(BN_MP_MUL_D_C)
673 # define BN_MP_CLAMP_C
674 # define BN_MP_GROW_C
675 #endif
676
677 #if defined(BN_MP_MULMOD_C)
678 # define BN_MP_CLEAR_C
679 # define BN_MP_INIT_SIZE_C
680 # define BN_MP_MOD_C
681 # define BN_MP_MUL_C
682 #endif
683
684 #if defined(BN_MP_NEG_C)
685 # define BN_MP_COPY_C
686 #endif
687
688 #if defined(BN_MP_OR_C)
689 # define BN_MP_CLAMP_C
690 # define BN_MP_GROW_C
691 #endif
692
693 #if defined(BN_MP_PACK_C)
694 # define BN_MP_CLEAR_C
695 # define BN_MP_DIV_2D_C
696 # define BN_MP_INIT_COPY_C
697 # define BN_MP_PACK_COUNT_C
698 #endif
699
700 #if defined(BN_MP_PACK_COUNT_C)
701 # define BN_MP_COUNT_BITS_C
702 #endif
703
704 #if defined(BN_MP_PRIME_FERMAT_C)
705 # define BN_MP_CLEAR_C
706 # define BN_MP_CMP_C
707 # define BN_MP_CMP_D_C
708 # define BN_MP_EXPTMOD_C
709 # define BN_MP_INIT_C
710 #endif
711
712 #if defined(BN_MP_PRIME_FROBENIUS_UNDERWOOD_C)
713 # define BN_MP_ADD_C
714 # define BN_MP_ADD_D_C
715 # define BN_MP_CLEAR_MULTI_C
716 # define BN_MP_CMP_C
717 # define BN_MP_COUNT_BITS_C
718 # define BN_MP_EXCH_C
719 # define BN_MP_GCD_C
720 # define BN_MP_INIT_MULTI_C
721 # define BN_MP_KRONECKER_C
722 # define BN_MP_MOD_C
723 # define BN_MP_MUL_2_C
724 # define BN_MP_MUL_C
725 # define BN_MP_MUL_D_C
726 # define BN_MP_SET_C
727 # define BN_MP_SET_U32_C
728 # define BN_MP_SQR_C
729 # define BN_MP_SUB_C
730 # define BN_MP_SUB_D_C
731 # define BN_S_MP_GET_BIT_C
732 #endif
733
734 #if defined(BN_MP_PRIME_IS_PRIME_C)
735 # define BN_MP_CLEAR_C
736 # define BN_MP_CMP_C
737 # define BN_MP_CMP_D_C
738 # define BN_MP_COUNT_BITS_C
739 # define BN_MP_DIV_2D_C
740 # define BN_MP_INIT_SET_C
741 # define BN_MP_IS_SQUARE_C
742 # define BN_MP_PRIME_MILLER_RABIN_C
743 # define BN_MP_PRIME_STRONG_LUCAS_SELFRIDGE_C
744 # define BN_MP_RAND_C
745 # define BN_MP_READ_RADIX_C
746 # define BN_MP_SET_C
747 # define BN_S_MP_PRIME_IS_DIVISIBLE_C
748 #endif
749
750 #if defined(BN_MP_PRIME_MILLER_RABIN_C)
751 # define BN_MP_CLEAR_C
752 # define BN_MP_CMP_C
753 # define BN_MP_CMP_D_C
754 # define BN_MP_CNT_LSB_C
755 # define BN_MP_DIV_2D_C
756 # define BN_MP_EXPTMOD_C
757 # define BN_MP_INIT_C
758 # define BN_MP_INIT_COPY_C
759 # define BN_MP_SQRMOD_C
760 # define BN_MP_SUB_D_C
761 #endif
762
763 #if defined(BN_MP_PRIME_NEXT_PRIME_C)
764 # define BN_MP_ADD_D_C
765 # define BN_MP_CLEAR_C
766 # define BN_MP_CMP_D_C
767 # define BN_MP_INIT_C
768 # define BN_MP_MOD_D_C
769 # define BN_MP_PRIME_IS_PRIME_C
770 # define BN_MP_SET_C
771 # define BN_MP_SUB_D_C
772 #endif
773
774 #if defined(BN_MP_PRIME_RABIN_MILLER_TRIALS_C)
775 #endif
776
777 #if defined(BN_MP_PRIME_RAND_C)
778 # define BN_MP_ADD_D_C
779 # define BN_MP_DIV_2_C
780 # define BN_MP_FROM_UBIN_C
781 # define BN_MP_MUL_2_C
782 # define BN_MP_PRIME_IS_PRIME_C
783 # define BN_MP_SUB_D_C
784 # define BN_S_MP_PRIME_RANDOM_EX_C
785 # define BN_S_MP_RAND_CB_C
786 # define BN_S_MP_RAND_SOURCE_C
787 #endif
788
789 #if defined(BN_MP_PRIME_STRONG_LUCAS_SELFRIDGE_C)
790 # define BN_MP_ADD_C
791 # define BN_MP_ADD_D_C
792 # define BN_MP_CLEAR_C
793 # define BN_MP_CLEAR_MULTI_C
794 # define BN_MP_CMP_C
795 # define BN_MP_CMP_D_C
796 # define BN_MP_CNT_LSB_C
797 # define BN_MP_COUNT_BITS_C
798 # define BN_MP_DIV_2D_C
799 # define BN_MP_DIV_2_C
800 # define BN_MP_GCD_C
801 # define BN_MP_INIT_C
802 # define BN_MP_INIT_MULTI_C
803 # define BN_MP_KRONECKER_C
804 # define BN_MP_MOD_C
805 # define BN_MP_MUL_2_C
806 # define BN_MP_MUL_C
807 # define BN_MP_SET_C
808 # define BN_MP_SET_I32_C
809 # define BN_MP_SET_U32_C
810 # define BN_MP_SQR_C
811 # define BN_MP_SUB_C
812 # define BN_MP_SUB_D_C
813 # define BN_S_MP_GET_BIT_C
814 # define BN_S_MP_MUL_SI_C
815 #endif
816
817 #if defined(BN_MP_RADIX_SIZE_C)
818 # define BN_MP_CLEAR_C
819 # define BN_MP_COUNT_BITS_C
820 # define BN_MP_DIV_D_C
821 # define BN_MP_INIT_COPY_C
822 #endif
823
824 #if defined(BN_MP_RADIX_SMAP_C)
825 #endif
826
827 #if defined(BN_MP_RAND_C)
828 # define BN_MP_GROW_C
829 # define BN_MP_RAND_SOURCE_C
830 # define BN_MP_ZERO_C
831 # define BN_S_MP_RAND_PLATFORM_C
832 # define BN_S_MP_RAND_SOURCE_C
833 #endif
834
835 #if defined(BN_MP_READ_RADIX_C)
836 # define BN_MP_ADD_D_C
837 # define BN_MP_MUL_D_C
838 # define BN_MP_ZERO_C
839 #endif
840
841 #if defined(BN_MP_REDUCE_C)
842 # define BN_MP_ADD_C
843 # define BN_MP_CLEAR_C
844 # define BN_MP_CMP_C
845 # define BN_MP_CMP_D_C
846 # define BN_MP_INIT_COPY_C
847 # define BN_MP_LSHD_C
848 # define BN_MP_MOD_2D_C
849 # define BN_MP_MUL_C
850 # define BN_MP_RSHD_C
851 # define BN_MP_SET_C
852 # define BN_MP_SUB_C
853 # define BN_S_MP_MUL_DIGS_C
854 # define BN_S_MP_MUL_HIGH_DIGS_C
855 # define BN_S_MP_MUL_HIGH_DIGS_FAST_C
856 # define BN_S_MP_SUB_C
857 #endif
858
859 #if defined(BN_MP_REDUCE_2K_C)
860 # define BN_MP_CLEAR_C
861 # define BN_MP_CMP_MAG_C
862 # define BN_MP_COUNT_BITS_C
863 # define BN_MP_DIV_2D_C
864 # define BN_MP_INIT_C
865 # define BN_MP_MUL_D_C
866 # define BN_S_MP_ADD_C
867 # define BN_S_MP_SUB_C
868 #endif
869
870 #if defined(BN_MP_REDUCE_2K_L_C)
871 # define BN_MP_CLEAR_C
872 # define BN_MP_CMP_MAG_C
873 # define BN_MP_COUNT_BITS_C
874 # define BN_MP_DIV_2D_C
875 # define BN_MP_INIT_C
876 # define BN_MP_MUL_C
877 # define BN_S_MP_ADD_C
878 # define BN_S_MP_SUB_C
879 #endif
880
881 #if defined(BN_MP_REDUCE_2K_SETUP_C)
882 # define BN_MP_2EXPT_C
883 # define BN_MP_CLEAR_C
884 # define BN_MP_COUNT_BITS_C
885 # define BN_MP_INIT_C
886 # define BN_S_MP_SUB_C
887 #endif
888
889 #if defined(BN_MP_REDUCE_2K_SETUP_L_C)
890 # define BN_MP_2EXPT_C
891 # define BN_MP_CLEAR_C
892 # define BN_MP_COUNT_BITS_C
893 # define BN_MP_INIT_C
894 # define BN_S_MP_SUB_C
895 #endif
896
897 #if defined(BN_MP_REDUCE_IS_2K_C)
898 # define BN_MP_COUNT_BITS_C
899 #endif
900
901 #if defined(BN_MP_REDUCE_IS_2K_L_C)
902 #endif
903
904 #if defined(BN_MP_REDUCE_SETUP_C)
905 # define BN_MP_2EXPT_C
906 # define BN_MP_DIV_C
907 #endif
908
909 #if defined(BN_MP_ROOT_N_C)
910 # define BN_MP_2EXPT_C
911 # define BN_MP_ADD_D_C
912 # define BN_MP_CLEAR_MULTI_C
913 # define BN_MP_CMP_C
914 # define BN_MP_COPY_C
915 # define BN_MP_COUNT_BITS_C
916 # define BN_MP_DIV_C
917 # define BN_MP_EXCH_C
918 # define BN_MP_EXPT_N_C
919 # define BN_MP_INIT_MULTI_C
920 # define BN_MP_MUL_C
921 # define BN_MP_MUL_D_C
922 # define BN_MP_SET_C
923 # define BN_MP_SUB_C
924 # define BN_MP_SUB_D_C
925 #endif
926
927 #if defined(BN_MP_RSHD_C)
928 # define BN_MP_ZERO_C
929 #endif
930
931 #if defined(BN_MP_SBIN_SIZE_C)
932 # define BN_MP_UBIN_SIZE_C
933 #endif
934
935 #if defined(BN_MP_SET_C)
936 #endif
937
938 #if defined(BN_MP_SET_DOUBLE_C)
939 # define BN_MP_DIV_2D_C
940 # define BN_MP_MUL_2D_C
941 # define BN_MP_SET_U64_C
942 #endif
943
944 #if defined(BN_MP_SET_I32_C)
945 # define BN_MP_SET_U32_C
946 #endif
947
948 #if defined(BN_MP_SET_I64_C)
949 # define BN_MP_SET_U64_C
950 #endif
951
952 #if defined(BN_MP_SET_L_C)
953 # define BN_MP_SET_UL_C
954 #endif
955
956 #if defined(BN_MP_SET_U32_C)
957 #endif
958
959 #if defined(BN_MP_SET_U64_C)
960 #endif
961
962 #if defined(BN_MP_SET_UL_C)
963 #endif
964
965 #if defined(BN_MP_SHRINK_C)
966 #endif
967
968 #if defined(BN_MP_SIGNED_RSH_C)
969 # define BN_MP_ADD_D_C
970 # define BN_MP_DIV_2D_C
971 # define BN_MP_SUB_D_C
972 #endif
973
974 #if defined(BN_MP_SQR_C)
975 # define BN_S_MP_KARATSUBA_SQR_C
976 # define BN_S_MP_SQR_C
977 # define BN_S_MP_SQR_FAST_C
978 # define BN_S_MP_TOOM_SQR_C
979 #endif
980
981 #if defined(BN_MP_SQRMOD_C)
982 # define BN_MP_CLEAR_C
983 # define BN_MP_INIT_C
984 # define BN_MP_MOD_C
985 # define BN_MP_SQR_C
986 #endif
987
988 #if defined(BN_MP_SQRT_C)
989 # define BN_MP_ADD_C
990 # define BN_MP_CLEAR_C
991 # define BN_MP_CMP_MAG_C
992 # define BN_MP_DIV_2_C
993 # define BN_MP_DIV_C
994 # define BN_MP_EXCH_C
995 # define BN_MP_INIT_C
996 # define BN_MP_INIT_COPY_C
997 # define BN_MP_RSHD_C
998 # define BN_MP_ZERO_C
999 #endif
1000
1001 #if defined(BN_MP_SQRTMOD_PRIME_C)
1002 # define BN_MP_ADD_D_C
1003 # define BN_MP_CLEAR_MULTI_C
1004 # define BN_MP_CMP_D_C
1005 # define BN_MP_COPY_C
1006 # define BN_MP_DIV_2_C
1007 # define BN_MP_EXPTMOD_C
1008 # define BN_MP_INIT_MULTI_C
1009 # define BN_MP_KRONECKER_C
1010 # define BN_MP_MOD_D_C
1011 # define BN_MP_MULMOD_C
1012 # define BN_MP_SET_C
1013 # define BN_MP_SET_U32_C
1014 # define BN_MP_SQRMOD_C
1015 # define BN_MP_SUB_D_C
1016 # define BN_MP_ZERO_C
1017 #endif
1018
1019 #if defined(BN_MP_SUB_C)
1020 # define BN_MP_CMP_MAG_C
1021 # define BN_S_MP_ADD_C
1022 # define BN_S_MP_SUB_C
1023 #endif
1024
1025 #if defined(BN_MP_SUB_D_C)
1026 # define BN_MP_ADD_D_C
1027 # define BN_MP_CLAMP_C
1028 # define BN_MP_GROW_C
1029 #endif
1030
1031 #if defined(BN_MP_SUBMOD_C)
1032 # define BN_MP_CLEAR_C
1033 # define BN_MP_INIT_C
1034 # define BN_MP_MOD_C
1035 # define BN_MP_SUB_C
1036 #endif
1037
1038 #if defined(BN_MP_TO_RADIX_C)
1039 # define BN_MP_CLEAR_C
1040 # define BN_MP_DIV_D_C
1041 # define BN_MP_INIT_COPY_C
1042 # define BN_S_MP_REVERSE_C
1043 #endif
1044
1045 #if defined(BN_MP_TO_SBIN_C)
1046 # define BN_MP_TO_UBIN_C
1047 #endif
1048
1049 #if defined(BN_MP_TO_UBIN_C)
1050 # define BN_MP_CLEAR_C
1051 # define BN_MP_DIV_2D_C
1052 # define BN_MP_INIT_COPY_C
1053 # define BN_MP_UBIN_SIZE_C
1054 #endif
1055
1056 #if defined(BN_MP_UBIN_SIZE_C)
1057 # define BN_MP_COUNT_BITS_C
1058 #endif
1059
1060 #if defined(BN_MP_UNPACK_C)
1061 # define BN_MP_CLAMP_C
1062 # define BN_MP_MUL_2D_C
1063 # define BN_MP_ZERO_C
1064 #endif
1065
1066 #if defined(BN_MP_XOR_C)
1067 # define BN_MP_CLAMP_C
1068 # define BN_MP_GROW_C
1069 #endif
1070
1071 #if defined(BN_MP_ZERO_C)
1072 #endif
1073
1074 #if defined(BN_PRIME_TAB_C)
1075 #endif
1076
1077 #if defined(BN_S_MP_ADD_C)
1078 # define BN_MP_CLAMP_C
1079 # define BN_MP_GROW_C
1080 #endif
1081
1082 #if defined(BN_S_MP_BALANCE_MUL_C)
1083 # define BN_MP_ADD_C
1084 # define BN_MP_CLAMP_C
1085 # define BN_MP_CLEAR_C
1086 # define BN_MP_CLEAR_MULTI_C
1087 # define BN_MP_EXCH_C
1088 # define BN_MP_INIT_MULTI_C
1089 # define BN_MP_INIT_SIZE_C
1090 # define BN_MP_LSHD_C
1091 # define BN_MP_MUL_C
1092 #endif
1093
1094 #if defined(BN_S_MP_DIV_3_C)
1095 # define BN_MP_CLAMP_C
1096 # define BN_MP_CLEAR_C
1097 # define BN_MP_EXCH_C
1098 # define BN_MP_INIT_SIZE_C
1099 #endif
1100
1101 #if defined(BN_S_MP_EXPTMOD_C)
1102 # define BN_MP_CLEAR_C
1103 # define BN_MP_COPY_C
1104 # define BN_MP_COUNT_BITS_C
1105 # define BN_MP_EXCH_C
1106 # define BN_MP_INIT_C
1107 # define BN_MP_MOD_C
1108 # define BN_MP_MUL_C
1109 # define BN_MP_REDUCE_2K_L_C
1110 # define BN_MP_REDUCE_2K_SETUP_L_C
1111 # define BN_MP_REDUCE_C
1112 # define BN_MP_REDUCE_SETUP_C
1113 # define BN_MP_SET_C
1114 # define BN_MP_SQR_C
1115 #endif
1116
1117 #if defined(BN_S_MP_EXPTMOD_FAST_C)
1118 # define BN_MP_CLEAR_C
1119 # define BN_MP_COPY_C
1120 # define BN_MP_COUNT_BITS_C
1121 # define BN_MP_DR_REDUCE_C
1122 # define BN_MP_DR_SETUP_C
1123 # define BN_MP_EXCH_C
1124 # define BN_MP_INIT_SIZE_C
1125 # define BN_MP_MOD_C
1126 # define BN_MP_MONTGOMERY_CALC_NORMALIZATION_C
1127 # define BN_MP_MONTGOMERY_REDUCE_C
1128 # define BN_MP_MONTGOMERY_SETUP_C
1129 # define BN_MP_MULMOD_C
1130 # define BN_MP_MUL_C
1131 # define BN_MP_REDUCE_2K_C
1132 # define BN_MP_REDUCE_2K_SETUP_C
1133 # define BN_MP_SET_C
1134 # define BN_MP_SQR_C
1135 # define BN_S_MP_MONTGOMERY_REDUCE_FAST_C
1136 #endif
1137
1138 #if defined(BN_S_MP_GET_BIT_C)
1139 #endif
1140
1141 #if defined(BN_S_MP_INVMOD_FAST_C)
1142 # define BN_MP_ADD_C
1143 # define BN_MP_CLEAR_MULTI_C
1144 # define BN_MP_CMP_C
1145 # define BN_MP_CMP_D_C
1146 # define BN_MP_CMP_MAG_C
1147 # define BN_MP_COPY_C
1148 # define BN_MP_DIV_2_C
1149 # define BN_MP_EXCH_C
1150 # define BN_MP_INIT_MULTI_C
1151 # define BN_MP_MOD_C
1152 # define BN_MP_SET_C
1153 # define BN_MP_SUB_C
1154 #endif
1155
1156 #if defined(BN_S_MP_INVMOD_SLOW_C)
1157 # define BN_MP_ADD_C
1158 # define BN_MP_CLEAR_MULTI_C
1159 # define BN_MP_CMP_C
1160 # define BN_MP_CMP_D_C
1161 # define BN_MP_CMP_MAG_C
1162 # define BN_MP_COPY_C
1163 # define BN_MP_DIV_2_C
1164 # define BN_MP_EXCH_C
1165 # define BN_MP_INIT_MULTI_C
1166 # define BN_MP_MOD_C
1167 # define BN_MP_SET_C
1168 # define BN_MP_SUB_C
1169 #endif
1170
1171 #if defined(BN_S_MP_KARATSUBA_MUL_C)
1172 # define BN_MP_ADD_C
1173 # define BN_MP_CLAMP_C
1174 # define BN_MP_CLEAR_C
1175 # define BN_MP_INIT_SIZE_C
1176 # define BN_MP_LSHD_C
1177 # define BN_MP_MUL_C
1178 # define BN_S_MP_ADD_C
1179 # define BN_S_MP_SUB_C
1180 #endif
1181
1182 #if defined(BN_S_MP_KARATSUBA_SQR_C)
1183 # define BN_MP_ADD_C
1184 # define BN_MP_CLAMP_C
1185 # define BN_MP_CLEAR_C
1186 # define BN_MP_INIT_SIZE_C
1187 # define BN_MP_LSHD_C
1188 # define BN_MP_SQR_C
1189 # define BN_S_MP_ADD_C
1190 # define BN_S_MP_SUB_C
1191 #endif
1192
1193 #if defined(BN_S_MP_LOG_C)
1194 # define BN_MP_CLEAR_MULTI_C
1195 # define BN_MP_CMP_C
1196 # define BN_MP_CMP_D_C
1197 # define BN_MP_COPY_C
1198 # define BN_MP_EXCH_C
1199 # define BN_MP_EXPT_N_C
1200 # define BN_MP_INIT_MULTI_C
1201 # define BN_MP_MUL_C
1202 # define BN_MP_SET_C
1203 # define BN_MP_SQR_C
1204 #endif
1205
1206 #if defined(BN_S_MP_LOG_2EXPT_C)
1207 # define BN_MP_COUNT_BITS_C
1208 #endif
1209
1210 #if defined(BN_S_MP_LOG_D_C)
1211 #endif
1212
1213 #if defined(BN_S_MP_MONTGOMERY_REDUCE_FAST_C)
1214 # define BN_MP_CLAMP_C
1215 # define BN_MP_CMP_MAG_C
1216 # define BN_MP_GROW_C
1217 # define BN_S_MP_SUB_C
1218 #endif
1219
1220 #if defined(BN_S_MP_MUL_DIGS_C)
1221 # define BN_MP_CLAMP_C
1222 # define BN_MP_CLEAR_C
1223 # define BN_MP_EXCH_C
1224 # define BN_MP_INIT_SIZE_C
1225 # define BN_S_MP_MUL_DIGS_FAST_C
1226 #endif
1227
1228 #if defined(BN_S_MP_MUL_DIGS_FAST_C)
1229 # define BN_MP_CLAMP_C
1230 # define BN_MP_GROW_C
1231 #endif
1232
1233 #if defined(BN_S_MP_MUL_HIGH_DIGS_C)
1234 # define BN_MP_CLAMP_C
1235 # define BN_MP_CLEAR_C
1236 # define BN_MP_EXCH_C
1237 # define BN_MP_INIT_SIZE_C
1238 # define BN_S_MP_MUL_HIGH_DIGS_FAST_C
1239 #endif
1240
1241 #if defined(BN_S_MP_MUL_HIGH_DIGS_FAST_C)
1242 # define BN_MP_CLAMP_C
1243 # define BN_MP_GROW_C
1244 #endif
1245
1246 #if defined(BN_S_MP_PRIME_IS_DIVISIBLE_C)
1247 # define BN_MP_MOD_D_C
1248 #endif
1249
1250 #if defined(BN_S_MP_RAND_JENKINS_C)
1251 # define BN_S_MP_RAND_JENKINS_INIT_C
1252 #endif
1253
1254 #if defined(BN_S_MP_RAND_PLATFORM_C)
1255 #endif
1256
1257 #if defined(BN_S_MP_REVERSE_C)
1258 #endif
1259
1260 #if defined(BN_S_MP_SQR_C)
1261 # define BN_MP_CLAMP_C
1262 # define BN_MP_CLEAR_C
1263 # define BN_MP_EXCH_C
1264 # define BN_MP_INIT_SIZE_C
1265 #endif
1266
1267 #if defined(BN_S_MP_SQR_FAST_C)
1268 # define BN_MP_CLAMP_C
1269 # define BN_MP_GROW_C
1270 #endif
1271
1272 #if defined(BN_S_MP_SUB_C)
1273 # define BN_MP_CLAMP_C
1274 # define BN_MP_GROW_C
1275 #endif
1276
1277 #if defined(BN_S_MP_TOOM_MUL_C)
1278 # define BN_MP_ADD_C
1279 # define BN_MP_CLAMP_C
1280 # define BN_MP_CLEAR_C
1281 # define BN_MP_CLEAR_MULTI_C
1282 # define BN_MP_DIV_2_C
1283 # define BN_MP_INIT_MULTI_C
1284 # define BN_MP_INIT_SIZE_C
1285 # define BN_MP_LSHD_C
1286 # define BN_MP_MUL_2_C
1287 # define BN_MP_MUL_C
1288 # define BN_MP_SUB_C
1289 # define BN_S_MP_DIV_3_C
1290 #endif
1291
1292 #if defined(BN_S_MP_TOOM_SQR_C)
1293 # define BN_MP_ADD_C
1294 # define BN_MP_CLAMP_C
1295 # define BN_MP_CLEAR_C
1296 # define BN_MP_DIV_2_C
1297 # define BN_MP_INIT_C
1298 # define BN_MP_INIT_SIZE_C
1299 # define BN_MP_LSHD_C
1300 # define BN_MP_MUL_2_C
1301 # define BN_MP_MUL_C
1302 # define BN_MP_SQR_C
1303 # define BN_MP_SUB_C
1304 #endif
1305
1306 #ifdef LTM_INSIDE
1307 #undef LTM_INSIDE
1308 #ifdef LTM3
1309 # define LTM_LAST
1310 #endif
1311
1312 #include "tommath_superclass.h"
1313 #include "tommath_class.h"
1314 #else
1315 # define LTM_LAST
1316 #endif