Lines Matching defs:b
127 #define MP_MIN(a,b) (((a) < (b)) ? (a) : (b))
128 #define MP_MAX(a,b) (((a) > (b)) ? (a) : (b))
129 #define MP_HOWMANY(a,b) (((a) + (b) - 1)/(b))
130 #define MP_ROUNDUP(a,b) (MP_HOWMANY(a,b) * (b))
200 void s_mp_exch(mp_int *a, mp_int *b); /* swap a and b in place */
209 mp_err s_mp_norm(mp_int *a, mp_int *b, mp_digit *pd);
218 mp_err s_mp_add(mp_int *a, const mp_int *b); /* magnitude addition */
219 mp_err s_mp_add_3arg(const mp_int *a, const mp_int *b, mp_int *c);
220 mp_err s_mp_sub(mp_int *a, const mp_int *b); /* magnitude subtract */
221 mp_err s_mp_sub_3arg(const mp_int *a, const mp_int *b, mp_int *c);
222 mp_err s_mp_add_offset(mp_int *a, mp_int *b, mp_size offset);
223 /* a += b * RADIX^offset */
224 mp_err s_mp_mul(mp_int *a, const mp_int *b); /* magnitude multiply */
231 mp_err s_mp_exptmod(const mp_int *a, const mp_int *b, const mp_int *m, mp_int *c);
233 int s_mp_cmp(const mp_int *a, const mp_int *b); /* magnitude comparison */
274 /* c = a * b */
275 #define s_mpv_mul_d(a, a_len, b, c) \
276 ((unsigned long*)c)[a_len] = s_mpv_mul_set_vec64(c, a, a_len, b)
278 /* c += a * b */
279 #define s_mpv_mul_d_add(a, a_len, b, c) \
280 ((unsigned long*)c)[a_len] = s_mpv_mul_add_vec64(c, a, a_len, b)
285 mp_digit b, mp_digit *c);
287 mp_digit b, mp_digit *c);
292 mp_size a_len, mp_digit b,
301 /* c += a * b * (MP_RADIX ** offset); */
302 #define s_mp_mul_d_add_offset(a, b, c, off) \
303 (s_mpv_mul_d_add_prop(MP_DIGITS(a), MP_USED(a), b, MP_DIGITS(c) + off), MP_OKAY)
308 mp_size b; /* R == 2 ** b, also b = # significant bits in N */
311 mp_err s_mp_mul_mont(const mp_int *a, const mp_int *b, mp_int *c,