[Gmp-commit] /var/hg/gmp: 2 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Thu Jan 5 13:01:39 UTC 2017


details:   /var/hg/gmp/rev/4242daad9555
changeset: 17203:4242daad9555
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Thu Jan 05 13:58:49 2017 +0100
description:
Retune (mainly for DIV_1_VS_MUL_1_PERCENT).

details:   /var/hg/gmp/rev/acb5df2f49a2
changeset: 17204:acb5df2f49a2
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Thu Jan 05 14:01:36 2017 +0100
description:
Trivial merge.

diffstat:

 mpn/arm/v7a/cora15/gmp-mparam.h |  2 +-
 mpn/x86/k7/gmp-mparam.h         |  2 ++
 mpn/x86/k8/gmp-mparam.h         |  2 ++
 mpn/x86_64/invert_limb.asm      |  2 +-
 mpn/x86_64/k8/gmp-mparam.h      |  2 ++
 5 files changed, 8 insertions(+), 2 deletions(-)

diffs (60 lines):

diff -r f7e1104aaaa5 -r acb5df2f49a2 mpn/arm/v7a/cora15/gmp-mparam.h
--- a/mpn/arm/v7a/cora15/gmp-mparam.h	Tue Jan 03 20:41:02 2017 +0100
+++ b/mpn/arm/v7a/cora15/gmp-mparam.h	Thu Jan 05 14:01:36 2017 +0100
@@ -51,7 +51,7 @@
 #define DIVEXACT_1_THRESHOLD                 0  /* always (native) */
 #define BMOD_1_TO_MOD_1_THRESHOLD           15
 
-#define DIV_1_VS_MUL_1_PERCENT             220
+#define DIV_1_VS_MUL_1_PERCENT             290
 
 #define MUL_TOOM22_THRESHOLD                28
 #define MUL_TOOM33_THRESHOLD               116
diff -r f7e1104aaaa5 -r acb5df2f49a2 mpn/x86/k7/gmp-mparam.h
--- a/mpn/x86/k7/gmp-mparam.h	Tue Jan 03 20:41:02 2017 +0100
+++ b/mpn/x86/k7/gmp-mparam.h	Thu Jan 05 14:01:36 2017 +0100
@@ -51,6 +51,8 @@
 #define DIVEXACT_1_THRESHOLD                 0  /* always (native) */
 #define BMOD_1_TO_MOD_1_THRESHOLD           24
 
+#define DIV_1_VS_MUL_1_PERCENT             259
+
 #define MUL_TOOM22_THRESHOLD                28
 #define MUL_TOOM33_THRESHOLD                85
 #define MUL_TOOM44_THRESHOLD               145
diff -r f7e1104aaaa5 -r acb5df2f49a2 mpn/x86/k8/gmp-mparam.h
--- a/mpn/x86/k8/gmp-mparam.h	Tue Jan 03 20:41:02 2017 +0100
+++ b/mpn/x86/k8/gmp-mparam.h	Thu Jan 05 14:01:36 2017 +0100
@@ -50,6 +50,8 @@
 #define DIVEXACT_1_THRESHOLD                 0  /* always (native) */
 #define BMOD_1_TO_MOD_1_THRESHOLD           40
 
+#define DIV_1_VS_MUL_1_PERCENT             264
+
 #define MUL_TOOM22_THRESHOLD                24
 #define MUL_TOOM33_THRESHOLD                81
 #define MUL_TOOM44_THRESHOLD               130
diff -r f7e1104aaaa5 -r acb5df2f49a2 mpn/x86_64/invert_limb.asm
--- a/mpn/x86_64/invert_limb.asm	Tue Jan 03 20:41:02 2017 +0100
+++ b/mpn/x86_64/invert_limb.asm	Thu Jan 05 14:01:36 2017 +0100
@@ -88,7 +88,7 @@
 	shr	$47, %rcx
 	add	%rax, %rcx		C	%rcx = v2
 
-	C v3 = (v2 << 31) + (v2 * (2^96 - v2 * d63 + ((v2 >> 1) & mask)) >> 65
+	C v3 = (v2 << 31) + (v2 * (2^96 - v2 * d63 + ((v2 >> 1) & mask)) >> 65)
 	mov	%rdi, %rsi		C			 0	 0	 0
 	shr	%rsi			C d/2
 	sbb	%rax, %rax		C -d0 = -(d mod 2)
diff -r f7e1104aaaa5 -r acb5df2f49a2 mpn/x86_64/k8/gmp-mparam.h
--- a/mpn/x86_64/k8/gmp-mparam.h	Tue Jan 03 20:41:02 2017 +0100
+++ b/mpn/x86_64/k8/gmp-mparam.h	Thu Jan 05 14:01:36 2017 +0100
@@ -54,6 +54,8 @@
 #define DIVEXACT_1_THRESHOLD                 0  /* always (native) */
 #define BMOD_1_TO_MOD_1_THRESHOLD           16
 
+#define DIV_1_VS_MUL_1_PERCENT             337
+
 #define MUL_TOOM22_THRESHOLD                28
 #define MUL_TOOM33_THRESHOLD                81
 #define MUL_TOOM44_THRESHOLD               242


More information about the gmp-commit mailing list