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

mercurial at gmplib.org mercurial at gmplib.org
Mon Mar 17 21:44:41 UTC 2014


details:   /var/hg/gmp/rev/5af2865aef16
changeset: 16348:5af2865aef16
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Mon Mar 17 22:43:59 2014 +0100
description:
Retune.

details:   /var/hg/gmp/rev/7a022f693cad
changeset: 16349:7a022f693cad
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Mon Mar 17 22:44:30 2014 +0100
description:
Remove clipper, i960, ns32k, pyr, a29k, z8000.

diffstat:

 ChangeLog                             |   12 +
 configure.ac                          |   38 -----
 doc/gmp.texi                          |    6 -
 mpn/Makefile.am                       |    6 +-
 mpn/a29k/add_n.s                      |  129 -------------------
 mpn/a29k/addmul_1.s                   |  122 ------------------
 mpn/a29k/lshift.s                     |  102 ---------------
 mpn/a29k/mul_1.s                      |  106 ----------------
 mpn/a29k/rshift.s                     |   98 ---------------
 mpn/a29k/sub_n.s                      |  129 -------------------
 mpn/a29k/submul_1.s                   |  125 -------------------
 mpn/a29k/udiv.s                       |   39 ------
 mpn/a29k/umul.s                       |   38 -----
 mpn/clipper/add_n.s                   |   57 --------
 mpn/clipper/mul_1.s                   |   56 --------
 mpn/clipper/sub_n.s                   |   57 --------
 mpn/i960/README                       |    9 -
 mpn/i960/add_n.s                      |   52 --------
 mpn/i960/addmul_1.s                   |   57 --------
 mpn/i960/mul_1.s                      |   54 --------
 mpn/i960/sub_n.s                      |   52 --------
 mpn/ns32k/add_n.s                     |   55 --------
 mpn/ns32k/addmul_1.s                  |   57 --------
 mpn/ns32k/mul_1.s                     |   56 --------
 mpn/ns32k/sub_n.s                     |   55 --------
 mpn/ns32k/submul_1.s                  |   57 --------
 mpn/pyr/add_n.s                       |   85 -------------
 mpn/pyr/addmul_1.s                    |   54 --------
 mpn/pyr/mul_1.s                       |   51 -------
 mpn/pyr/sub_n.s                       |   85 -------------
 mpn/sparc32/v9/gmp-mparam.h           |  220 +++++++++++++++++++--------------
 mpn/sparc64/ultrasparc34/gmp-mparam.h |  195 ++++++++++++++---------------
 mpn/z8000/README                      |   45 ------
 mpn/z8000/add_n.s                     |   62 ---------
 mpn/z8000/gmp-mparam.h                |   32 ----
 mpn/z8000/mul_1.s                     |   77 -----------
 mpn/z8000/sub_n.s                     |   63 ---------
 37 files changed, 238 insertions(+), 2355 deletions(-)

diffs (truncated from 2895 to 300 lines):

diff -r 694c8f8b5a82 -r 7a022f693cad ChangeLog
--- a/ChangeLog	Mon Mar 17 19:49:05 2014 +0100
+++ b/ChangeLog	Mon Mar 17 22:44:30 2014 +0100
@@ -1,3 +1,15 @@
+2014-03-17  Torbjorn Granlund  <tege at gmplib.org>
+
+	* configure.ac: Remove clipper, i960, ns32k, pyr, a29k, z8000.
+	* mpn/clipper: Remove directory and all its files.
+	* mpn/i960: Likewise.
+	* mpn/ns32k: Likewise.
+	* mpn/pyr: Likewise.
+	* mpn/a29k: Likewise.
+	* mpn/z8000: Likewise.
+	* mpn/Makefile.am (TARG_DIST): Purge removed directories.
+	* doc/gmp.texi: Remove special mentions of removed architectures.
+
 2014-02-21 Marco Bodrato <bodrato at mail.dm.unipi.it>
 
 	* mini-gmp/mini-gmp.c (mpz_probab_prime_p): Micro-optimisation.
diff -r 694c8f8b5a82 -r 7a022f693cad configure.ac
--- a/configure.ac	Mon Mar 17 19:49:05 2014 +0100
+++ b/configure.ac	Mon Mar 17 22:44:30 2014 +0100
@@ -458,11 +458,6 @@
 
 case $host in
 
-  a29k*-*-*)
-    path="a29k"
-    ;;
-
-
   alpha*-*-*)
     AC_DEFINE(HAVE_HOST_CPU_FAMILY_alpha)
     case $host_cpu in
@@ -678,11 +673,6 @@
     ;;
 
 
-  clipper*-*-*)
-    path="clipper"
-    ;;
-
-
   # Fujitsu
   [f30[01]-fujitsu-sysv*])
     cclist="gcc vcc"
@@ -792,11 +782,6 @@
     ;;
 
 
-  i960*-*-*)
-    path="i960"
-    ;;
-
-
   IA64_PATTERN)
     abilist="64"
     GMP_INCLUDE_MPN(ia64/ia64-defs.m4)
@@ -904,12 +889,6 @@
     ;;
 
 
-  # National Semiconductor 32k
-  ns32k*-*-*)
-    path="ns32k"
-    ;;
-
-
   # IRIX 5 and earlier can only run 32-bit o32.
   #
   # IRIX 6 and up always has a 64-bit mips CPU can run n32 or 64.  n32 is
@@ -1228,11 +1207,6 @@
     ;;
 
 
-  pyramid-*-*)
-    path="pyr"
-    ;;
-
-
   # IBM System/390 and z/Architecture
   S390_PATTERN | S390X_PATTERN)
     abilist="32"
@@ -1845,18 +1819,6 @@
     ;;
 
 
-  # FIXME: z8kx won't get through config.sub.  Could make 16 versus 32 bit
-  # limb an ABI option perhaps.
-  z8kx*-*-*)
-    path="z8000x"
-    extra_functions="udiv_w_sdiv"
-    ;;
-  z8k*-*-*)
-    path="z8000"
-    extra_functions="udiv_w_sdiv"
-    ;;
-
-
   # Special CPU "none" used to select generic C, now this is obsolete.
   none-*-*)
     enable_assembly=no
diff -r 694c8f8b5a82 -r 7a022f693cad doc/gmp.texi
--- a/doc/gmp.texi	Mon Mar 17 19:49:05 2014 +0100
+++ b/doc/gmp.texi	Mon Mar 17 22:44:30 2014 +0100
@@ -837,16 +837,10 @@
 
 @item
 Other:
- at nisamp{a29k},
 @nisamp{arm},
- at nisamp{clipper},
- at nisamp{i960},
- at nisamp{ns32k},
- at nisamp{pyramid},
 @nisamp{sh},
 @nisamp{sh2},
 @nisamp{vax},
- at nisamp{z8k}
 @end itemize
 
 CPUs not listed will use generic C code.
diff -r 694c8f8b5a82 -r 7a022f693cad mpn/Makefile.am
--- a/mpn/Makefile.am	Mon Mar 17 19:49:05 2014 +0100
+++ b/mpn/Makefile.am	Mon Mar 17 22:44:30 2014 +0100
@@ -39,9 +39,9 @@
 libmpn_la_LIBADD = $(OFILES)
 libmpn_la_DEPENDENCIES = $(OFILES)
 
-TARG_DIST = a29k alpha arm arm64 clipper cray generic i960 ia64 lisp m68k m88k \
-  minithres mips32 mips64 ns32k pa32 pa64 power powerpc32 powerpc64 pyr \
-  s390_32 s390_64 sh sparc32 sparc64 thumb vax x86 x86_64 z8000
+TARG_DIST = alpha arm arm64 cray generic ia64 lisp m68k m88k \
+  minithres mips32 mips64 pa32 pa64 power powerpc32 powerpc64 \
+  s390_32 s390_64 sh sparc32 sparc64 thumb vax x86 x86_64
 
 EXTRA_DIST = asm-defs.m4 cpp-ccas m4-ccas $(TARG_DIST)
 
diff -r 694c8f8b5a82 -r 7a022f693cad mpn/a29k/add_n.s
--- a/mpn/a29k/add_n.s	Mon Mar 17 19:49:05 2014 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,129 +0,0 @@
-; 29000 mpn_add_n -- Add two limb vectors of the same length > 0 and store
-; sum in a third limb vector.
-
-; Copyright 1992, 1994, 2000 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 either:
-;
-;    * 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.
-;
-;  or
-;
-;    * the GNU General Public License as published by the Free Software
-;      Foundation; either version 2 of the License, or (at your option) any
-;      later version.
-;
-;  or both in parallel, as here.
-;
-;  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 General Public License
-;  for more details.
-;
-;  You should have received copies of the GNU General Public License and the
-;  GNU Lesser General Public License along with the GNU MP Library.  If not,
-;  see https://www.gnu.org/licenses/.
-
-
-; INPUT PARAMETERS
-; res_ptr	lr2
-; s1_ptr	lr3
-; s2_ptr	lr4
-; size		lr5
-
-; We use the loadm/storem instructions and operate on chunks of 8
-; limbs/per iteration, until less than 8 limbs remain.
-
-; The 29k has no addition or subtraction instructions that doesn't
-; affect carry, so we need to save and restore that as soon as we
-; adjust the pointers.  gr116 is used for this purpose.  Note that
-; gr116==0 means that carry should be set.
-
-	.sect .lit,lit
-	.text
-	.align	4
-	.global	___gmpn_add_n
-	.word	0x60000
-___gmpn_add_n:
-	srl	gr117,lr5,3
-	sub	gr118,gr117,1
-	jmpt	gr118,Ltail
-	 constn	gr116,-1		; init cy reg
-	sub	gr117,gr117,2		; count for jmpfdec
-
-; Main loop working 8 limbs/iteration.
-Loop:	mtsrim	cr,(8-1)
-	loadm	0,0,gr96,lr3
-	add	lr3,lr3,32
-	mtsrim	cr,(8-1)
-	loadm	0,0,gr104,lr4
-	add	lr4,lr4,32
-
-	subr	gr116,gr116,0		; restore carry
-	addc	gr96,gr96,gr104
-	addc	gr97,gr97,gr105
-	addc	gr98,gr98,gr106
-	addc	gr99,gr99,gr107
-	addc	gr100,gr100,gr108
-	addc	gr101,gr101,gr109
-	addc	gr102,gr102,gr110
-	addc	gr103,gr103,gr111
-	subc	gr116,gr116,gr116	; gr116 = not(cy)
-
-	mtsrim	cr,(8-1)
-	storem	0,0,gr96,lr2
-	jmpfdec	gr117,Loop
-	 add	lr2,lr2,32
-
-; Code for the last up-to-7 limbs.
-; This code might look very strange, but it's hard to write it
-; differently without major slowdown.
-
-	and	lr5,lr5,(8-1)
-Ltail:	sub	gr118,lr5,1		; count for CR
-	jmpt	gr118,Lend
-	 sub	gr117,lr5,2		; count for jmpfdec
-
-	mtsr	cr,gr118
-	loadm	0,0,gr96,lr3
-	mtsr	cr,gr118
-	loadm	0,0,gr104,lr4
-
-	subr	gr116,gr116,0		; restore carry
-
-	jmpfdec	gr117,L1
-	 addc	gr96,gr96,gr104
-	jmp	Lstore
-	 mtsr	cr,gr118
-L1:	jmpfdec	gr117,L2
-	 addc	gr97,gr97,gr105
-	jmp	Lstore
-	 mtsr	cr,gr118
-L2:	jmpfdec	gr117,L3
-	 addc	gr98,gr98,gr106
-	jmp	Lstore
-	 mtsr	cr,gr118
-L3:	jmpfdec	gr117,L4
-	 addc	gr99,gr99,gr107
-	jmp	Lstore
-	 mtsr	cr,gr118
-L4:	jmpfdec	gr117,L5
-	 addc	gr100,gr100,gr108
-	jmp	Lstore
-	 mtsr	cr,gr118
-L5:	jmpfdec	gr117,L6
-	 addc	gr101,gr101,gr109
-	jmp	Lstore
-	 mtsr	cr,gr118
-L6:	addc	gr102,gr102,gr110
-
-Lstore:	storem	0,0,gr96,lr2
-	subc	gr116,gr116,gr116	; gr116 = not(cy)
-
-Lend:	jmpi	lr0
-	 add	gr96,gr116,1
diff -r 694c8f8b5a82 -r 7a022f693cad mpn/a29k/addmul_1.s
--- a/mpn/a29k/addmul_1.s	Mon Mar 17 19:49:05 2014 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,122 +0,0 @@
-; 29000 __gmpn_addmul_1 -- Multiply a limb vector with a single limb and
-; add the product to a second limb vector.
-
-; Copyright 1992, 1994, 2000 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 either:
-;
-;    * 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.
-;
-;  or
-;
-;    * the GNU General Public License as published by the Free Software
-;      Foundation; either version 2 of the License, or (at your option) any
-;      later version.
-;
-;  or both in parallel, as here.
-;
-;  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 General Public License


More information about the gmp-commit mailing list