Skip to content

Commit e60149d

Browse files
committed
simplifications: replace mp_mod_d by macro
1 parent 2d3262a commit e60149d

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

mp_mod_d.c

Lines changed: 0 additions & 10 deletions
This file was deleted.

tommath.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ mp_err mp_mul_d(const mp_int *a, mp_digit b, mp_int *c) MP_WUR;
398398
mp_err mp_div_d(const mp_int *a, mp_digit b, mp_int *c, mp_digit *d) MP_WUR;
399399

400400
/* c = a mod b, 0 <= c < b */
401-
mp_err mp_mod_d(const mp_int *a, mp_digit b, mp_digit *c) MP_WUR;
401+
#define mp_mod_d(a, b, c) mp_div_d((a), (b), NULL, (c))
402402

403403
/* ---> number theory <--- */
404404

0 commit comments

Comments
 (0)