summaryrefslogtreecommitdiffstats
path: root/libtommath/bn_s_mp_mul_high_digs.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-10-07 11:37:36 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-10-07 11:37:36 (GMT)
commit1e29c4f4ad0ec8903b99967d45b6ea0ea76c6111 (patch)
tree2312b71d74326ff86bcbd4acecb0f10a1c0ad63c /libtommath/bn_s_mp_mul_high_digs.c
parent1cb1fee6edc063cb49beb0188c2a3db4771846fa (diff)
downloadtcl-1e29c4f4ad0ec8903b99967d45b6ea0ea76c6111.zip
tcl-1e29c4f4ad0ec8903b99967d45b6ea0ea76c6111.tar.gz
tcl-1e29c4f4ad0ec8903b99967d45b6ea0ea76c6111.tar.bz2
Update to latest "develop" branch
Diffstat (limited to 'libtommath/bn_s_mp_mul_high_digs.c')
-rw-r--r--libtommath/bn_s_mp_mul_high_digs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libtommath/bn_s_mp_mul_high_digs.c b/libtommath/bn_s_mp_mul_high_digs.c
index e5e1ba4..2bb2a50 100644
--- a/libtommath/bn_s_mp_mul_high_digs.c
+++ b/libtommath/bn_s_mp_mul_high_digs.c
@@ -16,12 +16,11 @@ mp_err s_mp_mul_high_digs(const mp_int *a, const mp_int *b, mp_int *c, int digs)
mp_digit tmpx, *tmpt, *tmpy;
/* can we use the fast multiplier? */
-#ifdef BN_S_MP_MUL_HIGH_DIGS_FAST_C
- if (((a->used + b->used + 1) < MP_WARRAY)
+ if (MP_HAS(S_MP_MUL_HIGH_DIGS_FAST)
+ && ((a->used + b->used + 1) < MP_WARRAY)
&& (MP_MIN(a->used, b->used) < MP_MAXFAST)) {
return s_mp_mul_high_digs_fast(a, b, c, digs);
}
-#endif
if ((err = mp_init_size(&t, a->used + b->used + 1)) != MP_OKAY) {
return err;