summaryrefslogtreecommitdiff
path: root/tune/mod_1_1-2.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2011-02-28 22:21:52 +0100
committerNiels Möller <nisse@lysator.liu.se>2011-02-28 22:21:52 +0100
commit15ca7130b4911754ad4a50d37d9a3c7f3f3112bf (patch)
tree84c74f1a21c8353c1a836a624c27ddadd7b9ed87 /tune/mod_1_1-2.c
parent6eaec01859d7e931a25302f523522983e6314dc4 (diff)
downloadgmp-15ca7130b4911754ad4a50d37d9a3c7f3f3112bf.tar.gz
Added tuning of mod_1_1 alternatives.
Diffstat (limited to 'tune/mod_1_1-2.c')
-rw-r--r--tune/mod_1_1-2.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/tune/mod_1_1-2.c b/tune/mod_1_1-2.c
new file mode 100644
index 000000000..2740b603d
--- /dev/null
+++ b/tune/mod_1_1-2.c
@@ -0,0 +1,28 @@
+/* mpn/generic/mod_1_1.c method 2.
+
+Copyright 2011 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 3 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. If not, see http://www.gnu.org/licenses/. */
+
+#include "gmp.h"
+#include "gmp-impl.h"
+
+#undef MOD_1_1P_METHOD
+#define MOD_1_1P_METHOD 2
+#define __gmpn_mod_1_1p mpn_mod_1_1p_2
+#define __gmpn_mod_1_1p_cps mpn_mod_1_1p_cps_2
+
+#include "mpn/generic/mod_1_1.c"