]> pd.if.org Git - zpackage/blob - tomsfastmath/src/headers/tfm_private.h
commit files needed for zpm-fetchurl
[zpackage] / tomsfastmath / src / headers / tfm_private.h
1 /* TomsFastMath, a fast ISO C bignum library.
2  *
3  * This project is meant to fill in where LibTomMath
4  * falls short.  That is speed ;-)
5  *
6  * This project is public domain and free for all purposes.
7  *
8  * Tom St Denis, tomstdenis@gmail.com
9  */
10 #ifndef TFM_PRIVATE_H_
11 #define TFM_PRIVATE_H_
12
13 #include <tfm.h>
14
15 /* VARIOUS LOW LEVEL STUFFS */
16 void s_fp_add(fp_int *a, fp_int *b, fp_int *c);
17 void s_fp_sub(fp_int *a, fp_int *b, fp_int *c);
18 void fp_reverse(unsigned char *s, int len);
19
20 void fp_mul_comba(fp_int *A, fp_int *B, fp_int *C);
21
22 #ifdef TFM_SMALL_SET
23 void fp_mul_comba_small(fp_int *A, fp_int *B, fp_int *C);
24 #endif
25
26 #ifdef TFM_MUL3
27 void fp_mul_comba3(fp_int *A, fp_int *B, fp_int *C);
28 #endif
29 #ifdef TFM_MUL4
30 void fp_mul_comba4(fp_int *A, fp_int *B, fp_int *C);
31 #endif
32 #ifdef TFM_MUL6
33 void fp_mul_comba6(fp_int *A, fp_int *B, fp_int *C);
34 #endif
35 #ifdef TFM_MUL7
36 void fp_mul_comba7(fp_int *A, fp_int *B, fp_int *C);
37 #endif
38 #ifdef TFM_MUL8
39 void fp_mul_comba8(fp_int *A, fp_int *B, fp_int *C);
40 #endif
41 #ifdef TFM_MUL9
42 void fp_mul_comba9(fp_int *A, fp_int *B, fp_int *C);
43 #endif
44 #ifdef TFM_MUL12
45 void fp_mul_comba12(fp_int *A, fp_int *B, fp_int *C);
46 #endif
47 #ifdef TFM_MUL17
48 void fp_mul_comba17(fp_int *A, fp_int *B, fp_int *C);
49 #endif
50
51 #ifdef TFM_MUL20
52 void fp_mul_comba20(fp_int *A, fp_int *B, fp_int *C);
53 #endif
54 #ifdef TFM_MUL24
55 void fp_mul_comba24(fp_int *A, fp_int *B, fp_int *C);
56 #endif
57 #ifdef TFM_MUL28
58 void fp_mul_comba28(fp_int *A, fp_int *B, fp_int *C);
59 #endif
60 #ifdef TFM_MUL32
61 void fp_mul_comba32(fp_int *A, fp_int *B, fp_int *C);
62 #endif
63 #ifdef TFM_MUL48
64 void fp_mul_comba48(fp_int *A, fp_int *B, fp_int *C);
65 #endif
66 #ifdef TFM_MUL64
67 void fp_mul_comba64(fp_int *A, fp_int *B, fp_int *C);
68 #endif
69
70 void fp_sqr_comba(fp_int *A, fp_int *B);
71
72 #ifdef TFM_SMALL_SET
73 void fp_sqr_comba_small(fp_int *A, fp_int *B);
74 #endif
75
76 #ifdef TFM_SQR3
77 void fp_sqr_comba3(fp_int *A, fp_int *B);
78 #endif
79 #ifdef TFM_SQR4
80 void fp_sqr_comba4(fp_int *A, fp_int *B);
81 #endif
82 #ifdef TFM_SQR6
83 void fp_sqr_comba6(fp_int *A, fp_int *B);
84 #endif
85 #ifdef TFM_SQR7
86 void fp_sqr_comba7(fp_int *A, fp_int *B);
87 #endif
88 #ifdef TFM_SQR8
89 void fp_sqr_comba8(fp_int *A, fp_int *B);
90 #endif
91 #ifdef TFM_SQR9
92 void fp_sqr_comba9(fp_int *A, fp_int *B);
93 #endif
94 #ifdef TFM_SQR12
95 void fp_sqr_comba12(fp_int *A, fp_int *B);
96 #endif
97 #ifdef TFM_SQR17
98 void fp_sqr_comba17(fp_int *A, fp_int *B);
99 #endif
100
101 #ifdef TFM_SQR20
102 void fp_sqr_comba20(fp_int *A, fp_int *B);
103 #endif
104 #ifdef TFM_SQR24
105 void fp_sqr_comba24(fp_int *A, fp_int *B);
106 #endif
107 #ifdef TFM_SQR28
108 void fp_sqr_comba28(fp_int *A, fp_int *B);
109 #endif
110 #ifdef TFM_SQR32
111 void fp_sqr_comba32(fp_int *A, fp_int *B);
112 #endif
113 #ifdef TFM_SQR48
114 void fp_sqr_comba48(fp_int *A, fp_int *B);
115 #endif
116 #ifdef TFM_SQR64
117 void fp_sqr_comba64(fp_int *A, fp_int *B);
118 #endif
119 extern const char *fp_s_rmap;
120
121 #endif
122
123 /* $Source$ */
124 /* $Revision$ */
125 /* $Date$ */