[Gmp-commit] /var/hg/gmp: mpn/generic/toom_interpolate_6pts.c: Borrow code fr...
mercurial at gmplib.org
mercurial at gmplib.org
Sat Nov 9 17:16:58 UTC 2019
details: /var/hg/gmp/rev/dc44b59ee8db
changeset: 17957:dc44b59ee8db
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Sat Nov 09 18:16:54 2019 +0100
description:
mpn/generic/toom_interpolate_6pts.c: Borrow code from _7pts.
diffstat:
mpn/generic/toom_interpolate_6pts.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 2d92939c8c2b -r dc44b59ee8db mpn/generic/toom_interpolate_6pts.c
--- a/mpn/generic/toom_interpolate_6pts.c Sat Nov 09 16:31:00 2019 +0100
+++ b/mpn/generic/toom_interpolate_6pts.c Sat Nov 09 18:16:54 2019 +0100
@@ -36,10 +36,12 @@
#include "gmp-impl.h"
+#define BINVERT_3 MODLIMB_INVERSE_3
+
/* For odd divisors, mpn_divexact_1 works fine with two's complement. */
#ifndef mpn_divexact_by3
-#if HAVE_NATIVE_mpn_pi1_bdiv_q_1 && MODLIMB_INVERSE_3
-#define mpn_divexact_by3(dst,src,size) mpn_pi1_bdiv_q_1(dst,src,size,3,MODLIMB_INVERSE_3,0)
+#if HAVE_NATIVE_mpn_pi1_bdiv_q_1
+#define mpn_divexact_by3(dst,src,size) mpn_pi1_bdiv_q_1(dst,src,size,3,BINVERT_3,0)
#else
#define mpn_divexact_by3(dst,src,size) mpn_divexact_1(dst,src,size,3)
#endif
More information about the gmp-commit
mailing list