simplifications: replace mp_mod_d by macro
This commit is contained in:
parent
2d3262af26
commit
e60149dec7
10
mp_mod_d.c
10
mp_mod_d.c
@ -1,10 +0,0 @@
|
||||
#include "tommath_private.h"
|
||||
#ifdef MP_MOD_D_C
|
||||
/* LibTomMath, multiple-precision integer library -- Tom St Denis */
|
||||
/* SPDX-License-Identifier: Unlicense */
|
||||
|
||||
mp_err mp_mod_d(const mp_int *a, mp_digit b, mp_digit *c)
|
||||
{
|
||||
return mp_div_d(a, b, NULL, c);
|
||||
}
|
||||
#endif
|
@ -398,7 +398,7 @@ mp_err mp_mul_d(const mp_int *a, mp_digit b, mp_int *c) MP_WUR;
|
||||
mp_err mp_div_d(const mp_int *a, mp_digit b, mp_int *c, mp_digit *d) MP_WUR;
|
||||
|
||||
/* c = a mod b, 0 <= c < b */
|
||||
mp_err mp_mod_d(const mp_int *a, mp_digit b, mp_digit *c) MP_WUR;
|
||||
#define mp_mod_d(a, b, c) mp_div_d((a), (b), NULL, (c))
|
||||
|
||||
/* ---> number theory <--- */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user