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

mercurial at gmplib.org mercurial at gmplib.org
Sun May 27 11:00:24 CEST 2012


details:   /var/hg/gmp/rev/0fd638604171
changeset: 15014:0fd638604171
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun May 27 10:59:26 2012 +0200
description:
Add new x86 CPUs.

details:   /var/hg/gmp/rev/14507dcf670b
changeset: 15015:14507dcf670b
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun May 27 11:00:16 2012 +0200
description:
Correct a comment.

diffstat:

 ChangeLog                    |  6 ++++++
 config.guess                 |  7 +++++--
 mpn/x86/fat/fat.c            |  9 ++++++---
 mpn/x86_64/fat/fat.c         |  9 ++++++---
 mpn/x86_64/fat/fat_entry.asm |  2 +-
 5 files changed, 24 insertions(+), 9 deletions(-)

diffs (101 lines):

diff -r f0438b9eb75e -r 14507dcf670b ChangeLog
--- a/ChangeLog	Sun May 27 09:29:51 2012 +0200
+++ b/ChangeLog	Sun May 27 11:00:16 2012 +0200
@@ -1,3 +1,9 @@
+2012-05-27  Torbjorn Granlund  <tege at gmplib.org>
+
+	* config.guess: Add new x86 CPUs.
+	* mpn/x86/fat/fat.c: Likewise.
+	* mpn/x86_64/fat/fat.c: Likewise.
+
 2012-05-27 Marco Bodrato <bodrato at mail.dm.unipi.it>
 
 	* mpn/x86_64/fat/fat.c: abort iff longmode-capable-bit is turned off.
diff -r f0438b9eb75e -r 14507dcf670b config.guess
--- a/config.guess	Sun May 27 09:29:51 2012 +0200
+++ b/config.guess	Sun May 27 11:00:16 2012 +0200
@@ -3,8 +3,8 @@
 # GMP config.guess wrapper.
 
 
-# Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2011 Free Software
-# Foundation, Inc.
+# Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2011, 2012 Free
+# Software Foundation, Inc.
 #
 # This file is part of the GNU MP Library.
 #
@@ -780,6 +780,9 @@
 	  else if (model == 0x2d)	cpu_64bit = 1, modelstr = "coreisbr"; /* SBC-EP */
 	  else if (model == 0x2e)	cpu_64bit = 1, modelstr = "coreinhm"; /* NHM Beckton */
 	  else if (model == 0x2f)	cpu_64bit = 1, modelstr = "coreiwsm"; /* WSM Eagleton */
+	  else if (model == 0x3a)	cpu_64bit = 1, modelstr = "coreisbr"; /* IBR */
+	  else if (model == 0x3c)	cpu_64bit = 1, modelstr = "coreisbr"; /* Haswell */
+	  else if (model == 0x36)	cpu_64bit = 1, modelstr = "atom";  /* Cedarview/Saltwell */
 	  else cpu_64bit = 1, modelstr = "corei"; /* default */
 	  break;
 	case 15:
diff -r f0438b9eb75e -r 14507dcf670b mpn/x86/fat/fat.c
--- a/mpn/x86/fat/fat.c	Sun May 27 09:29:51 2012 +0200
+++ b/mpn/x86/fat/fat.c	Sun May 27 11:00:16 2012 +0200
@@ -300,9 +300,10 @@
 		  CPUVEC_SETUP_core2;
 		  break;
 
-		case 0x1c:		/* Silverthorne */
-		case 0x26:		/* Lincroft */
-		case 0x27:		/* Saltwell */
+		case 0x1c:		/* Atom Silverthorne */
+		case 0x26:		/* Atom Lincroft */
+		case 0x27:		/* Atom Saltwell */
+		case 0x36:		/* Atom Cedarview/Saltwell */
 		  TRACE (printf ("  atom\n"));
 		  CPUVEC_SETUP_atom;
 		  CPUVEC_SETUP_atom_mmx;
@@ -335,6 +336,8 @@
 
 		case 0x2a:		/* SBR */
 		case 0x2d:		/* SBR-EP */
+		case 0x3a:		/* IBR */
+		case 0x3c:		/* Haswell */
 		  TRACE (printf ("  sandybridge\n"));
                   CPUVEC_SETUP_p6_mmx;
                   CPUVEC_SETUP_p6_p3mmx;
diff -r f0438b9eb75e -r 14507dcf670b mpn/x86_64/fat/fat.c
--- a/mpn/x86_64/fat/fat.c	Sun May 27 09:29:51 2012 +0200
+++ b/mpn/x86_64/fat/fat.c	Sun May 27 11:00:16 2012 +0200
@@ -234,9 +234,10 @@
 	      CPUVEC_SETUP_core2;
 	      break;
 
-	    case 0x1c:		/* Silverthorne */
-	    case 0x26:		/* Lincroft */
-	    case 0x27:		/* Saltwell */
+	    case 0x1c:		/* Atom Silverthorne */
+	    case 0x26:		/* Atom Lincroft */
+	    case 0x27:		/* Atom Saltwell? */
+	    case 0x36:		/* Atom Cedarview/Saltwell */
 	      CPUVEC_SETUP_atom;
 	      break;
 
@@ -262,6 +263,8 @@
 
 	    case 0x2a:		/* SB */
 	    case 0x2d:		/* SBC-EP */
+	    case 0x3a:		/* IBR */
+	    case 0x3c:		/* Haswell */
 	      CPUVEC_SETUP_core2;
 	      CPUVEC_SETUP_coreinhm;
 	      CPUVEC_SETUP_coreisbr;
diff -r f0438b9eb75e -r 14507dcf670b mpn/x86_64/fat/fat_entry.asm
--- a/mpn/x86_64/fat/fat_entry.asm	Sun May 27 09:29:51 2012 +0200
+++ b/mpn/x86_64/fat/fat_entry.asm	Sun May 27 11:00:16 2012 +0200
@@ -170,7 +170,7 @@
 
 C long __gmpn_cpuid (char dst[12], int id);
 C
-C This is called only once, so just something simple and compact is fine.
+C This is called only 3 times, so just something simple and compact is fine.
 
 
 define(`rp',  `%rdi')


More information about the gmp-commit mailing list