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

mercurial at gmplib.org mercurial at gmplib.org
Thu Feb 16 14:28:03 CET 2012


details:   /var/hg/gmp/rev/0af0550f0756
changeset: 14636:0af0550f0756
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Feb 16 14:24:59 2012 +0100
description:
Add some more cycle numbers.

details:   /var/hg/gmp/rev/6afbf681aebb
changeset: 14637:6afbf681aebb
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Feb 16 14:27:58 2012 +0100
description:
Whitespace cleanup.

diffstat:

 gmp-impl.h                     |  8 ++++----
 mpn/x86_64/aorsmul_1.asm       |  7 +++++--
 mpn/x86_64/core2/aorsmul_1.asm |  7 +++++--
 mpn/x86_64/mul_1.asm           |  9 ++++++---
 4 files changed, 20 insertions(+), 11 deletions(-)

diffs (94 lines):

diff -r bfb649d3c763 -r 6afbf681aebb gmp-impl.h
--- a/gmp-impl.h	Thu Feb 16 14:24:24 2012 +0100
+++ b/gmp-impl.h	Thu Feb 16 14:27:58 2012 +0100
@@ -2747,12 +2747,12 @@
     ASSERT ((base) >= 2);						\
     ASSERT ((base) < numberof (mp_bases));				\
 									\
-    /* Special case for X == 0.	 */					\
+    /* Special case for X == 0.  */					\
     if ((size) == 0)							\
       (result) = 1;							\
     else								\
       {									\
-	/* Calculate the total number of significant bits of X.	 */	\
+	/* Calculate the total number of significant bits of X.  */	\
 	count_leading_zeros (__cnt, (ptr)[(size)-1]);			\
 	__totbits = (size_t) (size) * GMP_NUMB_BITS - (__cnt - GMP_NAIL_BITS);\
 									\
@@ -2776,12 +2776,12 @@
 									\
     ASSERT ((size) >= 0);						\
 									\
-    /* Special case for X == 0.	 */					\
+    /* Special case for X == 0.  */					\
     if ((size) == 0)							\
       (result) = 1;							\
     else								\
       {									\
-	/* Calculate the total number of significant bits of X.	 */	\
+	/* Calculate the total number of significant bits of X.  */	\
 	count_leading_zeros (__cnt, (ptr)[(size)-1]);			\
 	__totbits = (size_t) (size) * GMP_NUMB_BITS - (__cnt - GMP_NAIL_BITS);\
 	(result) = (__totbits + 4 - 1) / 4;				\
diff -r bfb649d3c763 -r 6afbf681aebb mpn/x86_64/aorsmul_1.asm
--- a/mpn/x86_64/aorsmul_1.asm	Thu Feb 16 14:24:24 2012 +0100
+++ b/mpn/x86_64/aorsmul_1.asm	Thu Feb 16 14:27:58 2012 +0100
@@ -22,11 +22,14 @@
 C	     cycles/limb
 C AMD K8,K9	 2.5
 C AMD K10	 2.5
+C AMD bd1	 5.0
+C AMD bobcat	 6.17
 C Intel P4	14.9
 C Intel core2	 5.09
-C Intel corei	 ?
+C Intel NHM	 4.9
+C Intel SBR	 4.0
 C Intel atom	21.3
-C VIA nano	 5.5
+C VIA nano	 5.0
 
 C The loop of this code is the result of running a code generation and
 C optimization tool suite written by David Harvey and Torbjorn Granlund.
diff -r bfb649d3c763 -r 6afbf681aebb mpn/x86_64/core2/aorsmul_1.asm
--- a/mpn/x86_64/core2/aorsmul_1.asm	Thu Feb 16 14:24:24 2012 +0100
+++ b/mpn/x86_64/core2/aorsmul_1.asm	Thu Feb 16 14:27:58 2012 +0100
@@ -23,11 +23,14 @@
 C	     cycles/limb
 C AMD K8,K9	 4
 C AMD K10	 4
+C AMD bd1	 5.1
+C AMD bobcat	 
 C Intel P4	 ?
 C Intel core2	 4.3-4.5 (fluctuating)
-C Intel corei	 5
+C Intel NHM	 5.0
+C Intel SBR	 4.1
 C Intel atom	 ?
-C VIA nano	 ?
+C VIA nano	 5.25
 
 C INPUT PARAMETERS
 define(`rp',	`%rdi')
diff -r bfb649d3c763 -r 6afbf681aebb mpn/x86_64/mul_1.asm
--- a/mpn/x86_64/mul_1.asm	Thu Feb 16 14:24:24 2012 +0100
+++ b/mpn/x86_64/mul_1.asm	Thu Feb 16 14:27:58 2012 +0100
@@ -22,11 +22,14 @@
 C	     cycles/limb
 C AMD K8,K9	 2.5
 C AMD K10	 2.5
-C Intel P4	 12.3
+C AMD bd1	 5.0
+C AMD bobcat	 5.5
+C Intel P4	12.3
 C Intel core2	 4.0
-C Intel corei	 3.8
+C Intel NHM	 3.75
+C Intel SBR	 2.95
 C Intel atom	19.8
-C VIA nano	 ?
+C VIA nano	 4.25
 
 C The loop of this code is the result of running a code generation and
 C optimization tool suite written by David Harvey and Torbjorn Granlund.


More information about the gmp-commit mailing list