Lines Matching refs:mpi_ptr_t
65 typedef mpi_limb_t *mpi_ptr_t; /* pointer to a limb */ typedef
109 mpi_ptr_t mpi_alloc_limb_space(unsigned nlimbs);
110 void mpi_free_limb_space(mpi_ptr_t a);
111 void mpi_assign_limb_space(MPI a, mpi_ptr_t ap, unsigned nlimbs);
113 static inline mpi_limb_t mpihelp_add_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr,
115 mpi_limb_t mpihelp_add_n(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr,
116 mpi_ptr_t s2_ptr, mpi_size_t size);
117 static inline mpi_limb_t mpihelp_add(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, mpi_size_t s1_size,
118 mpi_ptr_t s2_ptr, mpi_size_t s2_size);
120 static inline mpi_limb_t mpihelp_sub_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr,
122 mpi_limb_t mpihelp_sub_n(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr,
123 mpi_ptr_t s2_ptr, mpi_size_t size);
124 static inline mpi_limb_t mpihelp_sub(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr, mpi_size_t s1_size,
125 mpi_ptr_t s2_ptr, mpi_size_t s2_size);
128 int mpihelp_cmp(mpi_ptr_t op1_ptr, mpi_ptr_t op2_ptr, mpi_size_t size);
134 mpi_ptr_t tspace;
136 mpi_ptr_t tp;
142 mpi_limb_t mpihelp_addmul_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr,
144 mpi_limb_t mpihelp_submul_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr,
146 int mpihelp_mul(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t usize,
147 mpi_ptr_t vp, mpi_size_t vsize, mpi_limb_t *_result);
148 void mpih_sqr_n_basecase(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t size);
149 void mpih_sqr_n(mpi_ptr_t prodp, mpi_ptr_t up, mpi_size_t size,
150 mpi_ptr_t tspace);
152 int mpihelp_mul_karatsuba_case(mpi_ptr_t prodp,
153 mpi_ptr_t up, mpi_size_t usize,
154 mpi_ptr_t vp, mpi_size_t vsize,
158 mpi_limb_t mpihelp_mul_1(mpi_ptr_t res_ptr, mpi_ptr_t s1_ptr,
162 mpi_limb_t mpihelp_divrem(mpi_ptr_t qp, mpi_size_t qextra_limbs,
163 mpi_ptr_t np, mpi_size_t nsize,
164 mpi_ptr_t dp, mpi_size_t dsize);
167 mpi_limb_t mpihelp_lshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize,
169 mpi_limb_t mpihelp_rshift(mpi_ptr_t wp, mpi_ptr_t up, mpi_size_t usize,