[Gmp-commit] /home/hgfiles/gmp: 2 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Tue Jan 12 23:15:43 CET 2010


details:   /home/hgfiles/gmp/rev/219ef65b1d96
changeset: 13371:219ef65b1d96
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Tue Jan 12 23:09:00 2010 +0100
description:
Make x86_64 fat work on some version of GNU/Linux.

details:   /home/hgfiles/gmp/rev/a5a901dc44e2
changeset: 13372:a5a901dc44e2
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Tue Jan 12 23:15:33 2010 +0100
description:
Remove obsolete tune/speed.c measurements.

diffstat:

 ChangeLog                    |  10 ++++++++++
 mpn/x86_64/fat/fat_entry.asm |  33 ---------------------------------
 tune/common.c                |  12 ------------
 tune/speed.c                 |   3 ---
 tune/speed.h                 |  13 -------------
 5 files changed, 10 insertions(+), 61 deletions(-)

diffs (124 lines):

diff -r bc4ddafb92bb -r a5a901dc44e2 ChangeLog
--- a/ChangeLog	Tue Jan 12 22:23:08 2010 +0100
+++ b/ChangeLog	Tue Jan 12 23:15:33 2010 +0100
@@ -1,5 +1,15 @@
 2010-01-12  Torbjorn Granlund  <tege at gmplib.org>
 
+	* tune/speed.c (routine): Remove obsolete mpn_dc_tdiv_qr and
+	mpn_dc_div_qr_n.
+	* tune/common.c (speed_mpn_dc_tdiv_qr, speed_mpn_dcpi1_div_qr_n):
+	Remove now unused functions.
+	* tune/speed.h (SPEED_ROUTINE_MPN_DC_DIVREM_N,
+	SPEED_ROUTINE_MPN_DC_DIVREM_SB, SPEED_ROUTINE_MPN_DC_TDIV_QR): Remove
+	now unused macros.
+
+	* mpn/x86_64/fat/fat_entry.asm (mpn_cpuid_available): Remove function.
+
 	* ltmain.sh: Upgrade from 1.5.24 to 2.2.6b.
 	* ylwrap: New file.
 	* .bootstrap: Remove explicit versions.
diff -r bc4ddafb92bb -r a5a901dc44e2 mpn/x86_64/fat/fat_entry.asm
--- a/mpn/x86_64/fat/fat_entry.asm	Tue Jan 12 22:23:08 2010 +0100
+++ b/mpn/x86_64/fat/fat_entry.asm	Tue Jan 12 23:15:33 2010 +0100
@@ -162,36 +162,3 @@
 	mov	%r8, %rbx
 	ret
 EPILOGUE()
-
-
-C int __gmpn_cpuid_available (void);
-C
-C Return non-zero if the cpuid instruction is available, which means late
-C model 80486 and higher.  80386 and early 80486 don't have cpuid.
-C
-C The test follows Intel AP-485 application note, namely that if bit 21 is
-C modifiable then cpuid is supported.  This test is reentrant and thread
-C safe, since of course any interrupt or context switch will preserve the
-C flags while we're tinkering with them.
-C
-C This is called only once, so just something simple and compact is fine.
-
-PROLOGUE(__gmpn_cpuid_available)
-	pushf
-	pop	%ecx		C old flags
-
-	mov	%ecx, %edx
-	xor	$0x200000, %edx
-	push	%edx
-	popf
-	pushf
-	pop	%edx		C tweaked flags
-
-	mov	$1, %eax
-	cmp	%ecx, %edx
-	jne	L(available)
-	xor	%eax, %eax	C not changed, so cpuid not available
-
-L(available):
-	ret
-EPILOGUE()
diff -r bc4ddafb92bb -r a5a901dc44e2 tune/common.c
--- a/tune/common.c	Tue Jan 12 22:23:08 2010 +0100
+++ b/tune/common.c	Tue Jan 12 23:15:33 2010 +0100
@@ -744,18 +744,6 @@
   SPEED_ROUTINE_MPN_MODEXACT_1C_ODD (mpn_modexact_1c_odd);
 }
 
-
-double
-speed_mpn_dc_tdiv_qr (struct speed_params *s)
-{
-  SPEED_ROUTINE_MPN_DC_TDIV_QR (mpn_tdiv_qr);
-}
-double
-speed_mpn_dcpi1_div_qr_n (struct speed_params *s)
-{
-  SPEED_ROUTINE_MPN_DC_DIVREM_N (mpn_dcpi1_div_qr_n);
-}
-
 double
 speed_mpz_mod (struct speed_params *s)
 {
diff -r bc4ddafb92bb -r a5a901dc44e2 tune/speed.c
--- a/tune/speed.c	Tue Jan 12 22:23:08 2010 +0100
+++ b/tune/speed.c	Tue Jan 12 23:15:33 2010 +0100
@@ -238,9 +238,6 @@
   { "mpn_mod_34lsub1",   speed_mpn_mod_34lsub1 },
 #endif
 
-  { "mpn_dc_tdiv_qr",       speed_mpn_dc_tdiv_qr       },
-  { "mpn_dc_div_qr_n",      speed_mpn_dcpi1_div_qr_n   },
-
   { "mpn_lshift",        speed_mpn_lshift, FLAG_R   },
   { "mpn_lshiftc",       speed_mpn_lshiftc, FLAG_R   },
   { "mpn_rshift",        speed_mpn_rshift, FLAG_R   },
diff -r bc4ddafb92bb -r a5a901dc44e2 tune/speed.h
--- a/tune/speed.h	Tue Jan 12 22:23:08 2010 +0100
+++ b/tune/speed.h	Tue Jan 12 23:15:33 2010 +0100
@@ -161,8 +161,6 @@
 double speed_mpn_com __GMP_PROTO ((struct speed_params *s));
 double speed_mpn_copyd __GMP_PROTO ((struct speed_params *s));
 double speed_mpn_copyi __GMP_PROTO ((struct speed_params *s));
-double speed_mpn_dcpi1_div_qr_n __GMP_PROTO ((struct speed_params *s));
-double speed_mpn_dc_tdiv_qr __GMP_PROTO ((struct speed_params *s));
 double speed_MPN_COPY __GMP_PROTO ((struct speed_params *s));
 double speed_MPN_COPY_DECR __GMP_PROTO ((struct speed_params *s));
 double speed_MPN_COPY_INCR __GMP_PROTO ((struct speed_params *s));
@@ -1436,17 +1434,6 @@
     return t;								\
   }
 
-#define SPEED_ROUTINE_MPN_DC_DIVREM_N(function)				\
-  SPEED_ROUTINE_MPN_DC_DIVREM_CALL((*function) (q, a, d, s->size, &dinv, r))
-
-#define SPEED_ROUTINE_MPN_DC_DIVREM_SB(function)			\
-  SPEED_ROUTINE_MPN_DC_DIVREM_CALL					\
-    ((*function) (q, a, 2*s->size, d, s->size))
-
-#define SPEED_ROUTINE_MPN_DC_TDIV_QR(function)				\
-  SPEED_ROUTINE_MPN_DC_DIVREM_CALL					\
-    ((*function) (q, r, 0, a, 2*s->size, d, s->size))
-
 
 /* A remainder 2*s->size by s->size limbs */
 


More information about the gmp-commit mailing list