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

mercurial at gmplib.org mercurial at gmplib.org
Tue Jan 9 23:20:22 UTC 2018


details:   /var/hg/gmp/rev/cd5e58236267
changeset: 17529:cd5e58236267
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Wed Jan 10 00:19:54 2018 +0100
description:
(__gmpn_cpuvec_init): Fix old pentium recog.
(__gmpn_cpuvec_init): Add many 64-bit CPUs.

details:   /var/hg/gmp/rev/4117847f9e8b
changeset: 17530:4117847f9e8b
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Wed Jan 10 00:20:14 2018 +0100
description:
Fix old pentium recog.

diffstat:

 config.guess      |   6 +++---
 mpn/x86/fat/fat.c |  19 ++++++++++++++++---
 2 files changed, 19 insertions(+), 6 deletions(-)

diffs (66 lines):

diff -r 1a7de94f558f -r 4117847f9e8b config.guess
--- a/config.guess	Sun Jan 07 18:26:24 2018 +0100
+++ b/config.guess	Wed Jan 10 00:20:14 2018 +0100
@@ -3,7 +3,7 @@
 # GMP config.guess wrapper.
 
 
-# Copyright 2000-2006, 2008, 2011-2016 Free Software Foundation, Inc.
+# Copyright 2000-2006, 2008, 2011-2016, 2018 Free Software Foundation, Inc.
 #
 #  This file is part of the GNU MP Library.
 #
@@ -846,8 +846,8 @@
       switch (family)
 	{
 	case 5:
-	  if (model <= 2)	modelstr = "pentium";
-	  else if (model >= 4)	modelstr = "pentiummmx";
+          if (model == 4 || model == 8)               modelstr = "pentiummmx";
+	  else                                        modelstr = "pentium";
 	  break;
 	case 6:
           if (model <= 1)                                   modelstr = "pentiumpro";
diff -r 1a7de94f558f -r 4117847f9e8b mpn/x86/fat/fat.c
--- a/mpn/x86/fat/fat.c	Sun Jan 07 18:26:24 2018 +0100
+++ b/mpn/x86/fat/fat.c	Wed Jan 10 00:20:14 2018 +0100
@@ -4,7 +4,8 @@
    THEY'RE ALMOST CERTAIN TO BE SUBJECT TO INCOMPATIBLE CHANGES OR DISAPPEAR
    COMPLETELY IN FUTURE GNU MP RELEASES.
 
-Copyright 2003, 2004, 2011-2013, 2015 Free Software Foundation, Inc.
+Copyright 2003, 2004, 2011-2013, 2015, 2017, 2018 Free Software Foundation,
+Inc.
 
 This file is part of the GNU MP Library.
 
@@ -260,7 +261,7 @@
             case 5:
               TRACE (printf ("  pentium\n"));
               CPUVEC_SETUP_pentium;
-              if (model >= 4)
+              if (model == 4 || model == 8)
                 {
                   TRACE (printf ("  pentiummmx\n"));
                   CPUVEC_SETUP_pentium_mmx;
@@ -361,7 +362,19 @@
 		case 0x2a:		/* SBR */
 		case 0x2d:		/* SBR-EP */
 		case 0x3a:		/* IBR */
-		case 0x3c:		/* Haswell */
+		case 0x3c:		/* Haswell client */
+		case 0x3f:		/* Haswell server */
+		case 0x45:		/* Haswell ULT */
+		case 0x46:		/* Crystal Well */
+		case 0x3d:		/* Broadwell */
+		case 0x47:		/* Broadwell */
+		case 0x4f:		/* Broadwell server */
+		case 0x56:		/* Broadwell microserver */
+		case 0x4e:		/* Skylake client */
+		case 0x55:		/* Skylake server */
+		case 0x5e:		/* Skylake */
+		case 0x8e:		/* Kabylake */
+		case 0x9e:		/* Kabylake */
 		  TRACE (printf ("  sandybridge\n"));
                   CPUVEC_SETUP_p6_mmx;
                   CPUVEC_SETUP_p6_p3mmx;


More information about the gmp-commit mailing list