summaryrefslogtreecommitdiff
path: root/tune/sb_inv.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2001-01-28 23:43:21 +0100
committerKevin Ryde <user42@zip.com.au>2001-01-28 23:43:21 +0100
commitaae1ea87b8143dc2df805cdc37d89d30652d9260 (patch)
tree8d1c53ed4038bd592fe6830445cd219326e10246 /tune/sb_inv.c
parentfec4c724dd8d21ac9f9f618592329edcd795d1c1 (diff)
downloadgmp-aae1ea87b8143dc2df805cdc37d89d30652d9260.tar.gz
* tune/divrem_2_div.c, tune/divrem_2_inv.c, tune/sb_div.c,
tune/sb_inv.c: New files.
Diffstat (limited to 'tune/sb_inv.c')
-rw-r--r--tune/sb_inv.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/tune/sb_inv.c b/tune/sb_inv.c
new file mode 100644
index 000000000..88ef5aea5
--- /dev/null
+++ b/tune/sb_inv.c
@@ -0,0 +1,33 @@
+/* mpn/generic/sb_divrem_mn.c forced to use udiv_qrnnd_preinv. */
+
+/*
+Copyright 2001 Free Software Foundation, Inc.
+
+This file is part of the GNU MP Library.
+
+The GNU MP Library is free software; you can redistribute it and/or modify
+it under the terms of the GNU Lesser General Public License as published by
+the Free Software Foundation; either version 2.1 of the License, or (at your
+option) any later version.
+
+The GNU MP Library is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
+License for more details.
+
+You should have received a copy of the GNU Lesser General Public License
+along with the GNU MP Library; see the file COPYING.LIB. If not, write to
+the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+MA 02111-1307, USA.
+*/
+
+#include "gmp.h"
+#include "gmp-impl.h"
+
+#ifdef SB_PREINV_THRESHOLD
+#undef SB_PREINV_THRESHOLD
+#endif
+#define SB_PREINV_THRESHOLD 0
+#define __gmpn_sb_divrem_mn mpn_sb_divrem_mn_inv
+
+#include "mpn/generic/sb_divrem_mn.c"