Lines Matching refs:mp_digit

124 #define  CARRYOUT(W)  (mp_digit)((W)>>DIGIT_BIT)
125 #define ACCUM(W) (mp_digit)(W)
157 void s_mp_setz(mp_digit *dp, mp_size count); /* zero digits */
158 void s_mp_copy(const mp_digit *sp, mp_digit *dp, mp_size count); /* copy */
173 #define s_mp_setz(dp, count) memset(dp, 0, (count) * sizeof(mp_digit))
180 #define s_mp_copy(sp, dp, count) memcpy(dp, sp, (count) * sizeof(mp_digit))
204 mp_err s_mp_mul_2d(mp_int *mp, mp_digit d); /* multiply by 2^d in place */
205 void s_mp_div_2d(mp_int *mp, mp_digit d); /* divide by 2^d in place */
206 void s_mp_mod_2d(mp_int *mp, mp_digit d); /* modulo 2^d in place */
209 mp_err s_mp_norm(mp_int *a, mp_int *b, mp_digit *pd);
211 mp_err s_mp_add_d(mp_int *mp, mp_digit d); /* unsigned digit addition */
212 mp_err s_mp_sub_d(mp_int *mp, mp_digit d); /* unsigned digit subtract */
213 mp_err s_mp_mul_d(mp_int *mp, mp_digit d); /* unsigned digit multiply */
214 mp_err s_mp_div_d(mp_int *mp, mp_digit d, mp_digit *r);
232 mp_err s_mp_2expt(mp_int *a, mp_digit k); /* a = 2^k */
234 int s_mp_cmp_d(const mp_int *a, mp_digit d); /* magnitude digit compare */
236 int s_mp_ispow2d(mp_digit d); /* is d a power of 2? */
239 char s_mp_todigit(mp_digit val, int r, int low); /* convert val to digit */
241 mp_digit s_mp_invmod_radix(mp_digit P); /* returns (P ** -1) mod RADIX */
271 mp_digit MPI_ASM_DECL s_mpv_mul_set_vec64(mp_digit*, mp_digit *, mp_size, mp_digit);
272 mp_digit MPI_ASM_DECL s_mpv_mul_add_vec64(mp_digit*, const mp_digit*, mp_size, mp_digit);
284 void MPI_ASM_DECL s_mpv_mul_d(const mp_digit *a, mp_size a_len,
285 mp_digit b, mp_digit *c);
286 void MPI_ASM_DECL s_mpv_mul_d_add(const mp_digit *a, mp_size a_len,
287 mp_digit b, mp_digit *c);
291 void MPI_ASM_DECL s_mpv_mul_d_add_prop(const mp_digit *a,
292 mp_size a_len, mp_digit b,
293 mp_digit *c);
294 void MPI_ASM_DECL s_mpv_sqr_add_prop(const mp_digit *a,
296 mp_digit *sqrs);
298 mp_err MPI_ASM_DECL s_mpv_div_2dx1d(mp_digit Nhi, mp_digit Nlo,
299 mp_digit divisor, mp_digit *quot, mp_digit *rem);
307 mp_digit n0prime; /* n0' = - (n0 ** -1) mod MP_RADIX */