[Gmp-commit] /home/hgfiles/gmp: Set up different paths for different 64-bit s...

mercurial at gmplib.org mercurial at gmplib.org
Fri Dec 11 00:49:32 CET 2009


details:   /home/hgfiles/gmp/rev/6c173e67bc39
changeset: 13030:6c173e67bc39
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Fri Dec 11 00:49:25 2009 +0100
description:
Set up different paths for different 64-bit sparc processors.

diffstat:

 ChangeLog                             |   6 ++
 configure.in                          |  10 +++-
 mpn/sparc64/gmp-mparam.h              |   2 +-
 mpn/sparc64/ultrasparc34/gmp-mparam.h |  81 +++++++++++++++++++++++++++++++++++
 4 files changed, 97 insertions(+), 2 deletions(-)

diffs (128 lines):

diff -r d48fdb0f5eef -r 6c173e67bc39 ChangeLog
--- a/ChangeLog	Thu Dec 10 17:04:34 2009 +0100
+++ b/ChangeLog	Fri Dec 11 00:49:25 2009 +0100
@@ -1,3 +1,9 @@
+2009-12-11  Torbjorn Granlund  <tege at gmplib.org>
+
+	* configure.in: Set up different paths for different 64-bit sparc
+	processors.
+	* mpn/sparc64/ultrasparc34/gmp-mparam.h: New file.
+
 2009-12-10  Torbjorn Granlund  <tege at gmplib.org>
 
 	* mpn/*/gmp-mparam.h: Regenerate many of these files.
diff -r d48fdb0f5eef -r 6c173e67bc39 configure.in
--- a/configure.in	Thu Dec 10 17:04:34 2009 +0100
+++ b/configure.in	Fri Dec 11 00:49:25 2009 +0100
@@ -1226,7 +1226,15 @@
           *) abilist="64 32" ;;
         esac
 
-        path_64="sparc64"
+	case $host_cpu in
+	  ultrasparc | ultrasparc2 | ultrasparc2i)
+	    path_64="sparc64/ultrasparc12 sparc64" ;;
+	  ultrasparc3)
+	    path_64="sparc64/ultrasparc34 sparc64/ultrasparc12 sparc64" ;;
+	  *)
+	    path_64="sparc64"
+	esac
+
         cclist_64="gcc"
         any_64_testlist="sizeof-long-8"
 
diff -r d48fdb0f5eef -r 6c173e67bc39 mpn/sparc64/gmp-mparam.h
--- a/mpn/sparc64/gmp-mparam.h	Thu Dec 10 17:04:34 2009 +0100
+++ b/mpn/sparc64/gmp-mparam.h	Fri Dec 11 00:49:25 2009 +0100
@@ -77,5 +77,5 @@
 
 #define GET_STR_DC_THRESHOLD             12
 #define GET_STR_PRECOMPUTE_THRESHOLD     17
-#define SET_STR_DC_THRESHOLD            381
+#define SET_STR_DC_THRESHOLD            399
 #define SET_STR_PRECOMPUTE_THRESHOLD   1659
diff -r d48fdb0f5eef -r 6c173e67bc39 mpn/sparc64/ultrasparc34/gmp-mparam.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mpn/sparc64/ultrasparc34/gmp-mparam.h	Fri Dec 11 00:49:25 2009 +0100
@@ -0,0 +1,81 @@
+/* ultrasparc3/4 gmp-mparam.h -- Compiler/machine parameter header file.
+
+Copyright 1991, 1993, 1994, 1999, 2000, 2001, 2002, 2004, 2006, 2008, 2009
+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/.  */
+
+#define GMP_LIMB_BITS 64
+#define BYTES_PER_MP_LIMB 8
+
+/* 1593 MHz ultrasparc3 running Solaris 10 (swift.nada.kth.se) */
+
+/* Generated by tuneup.c, 2009-12-11, gcc 3.4 */
+
+#define MUL_TOOM22_THRESHOLD             30
+#define MUL_TOOM33_THRESHOLD             93
+#define MUL_TOOM44_THRESHOLD            127
+
+#define SQR_BASECASE_THRESHOLD           10
+#define SQR_TOOM2_THRESHOLD              71
+#define SQR_TOOM3_THRESHOLD              97
+#define SQR_TOOM4_THRESHOLD             178
+
+#define MUL_FFT_TABLE  { 240, 480, 1344, 2304, 5120, 12288, 81920, 327680, 786432, 0 }
+#define MUL_FFT_MODF_THRESHOLD          256
+#define MUL_FFT_THRESHOLD              1664
+
+#define SQR_FFT_TABLE  { 304, 608, 1344, 2304, 7168, 20480, 81920, 327680, 786432, 0 }
+#define SQR_FFT_MODF_THRESHOLD          216
+#define SQR_FFT_THRESHOLD              1408
+
+#define MULLO_BASECASE_THRESHOLD         15
+#define MULLO_DC_THRESHOLD                0  /* never mpn_mullo_basecase */
+#define MULLO_MUL_N_THRESHOLD          2350
+
+#define MULMOD_BNM1_THRESHOLD            16
+
+#define DC_DIV_QR_THRESHOLD              16
+#define DC_DIVAPPR_Q_THRESHOLD           58
+#define DC_BDIV_QR_THRESHOLD             29
+#define DC_BDIV_Q_THRESHOLD             106
+#define BINV_NEWTON_THRESHOLD           448
+#define REDC_1_TO_REDC_2_THRESHOLD       10
+#define REDC_2_TO_REDC_N_THRESHOLD      117
+
+#define MATRIX22_STRASSEN_THRESHOLD      12
+#define HGCD_THRESHOLD                   44
+#define GCD_DC_THRESHOLD                120
+#define GCDEXT_DC_THRESHOLD             132
+#define JACOBI_BASE_METHOD                2
+
+#define DIVREM_1_NORM_THRESHOLD           0  /* always */
+#define DIVREM_1_UNNORM_THRESHOLD         0  /* always */
+#define MOD_1_NORM_THRESHOLD              0  /* always */
+#define MOD_1_UNNORM_THRESHOLD            0  /* always */
+#define MOD_1_1_THRESHOLD             MP_SIZE_T_MAX  /* never */
+#define MOD_1_2_THRESHOLD             MP_SIZE_T_MAX  /* never */
+#define MOD_1_4_THRESHOLD             MP_SIZE_T_MAX  /* never */
+#define USE_PREINV_DIVREM_1               1
+#define USE_PREINV_MOD_1                  1
+#define DIVREM_2_THRESHOLD                0  /* always */
+#define DIVEXACT_1_THRESHOLD              0  /* always */
+#define MODEXACT_1_ODD_THRESHOLD          0  /* always */
+
+#define GET_STR_DC_THRESHOLD             18
+#define GET_STR_PRECOMPUTE_THRESHOLD     27
+#define SET_STR_DC_THRESHOLD            292
+#define SET_STR_PRECOMPUTE_THRESHOLD   1033


More information about the gmp-commit mailing list