[Gmp-commit] /var/hg/gmp: Misc cleanups.
mercurial at gmplib.org
mercurial at gmplib.org
Sun Dec 13 23:14:08 UTC 2015
details: /var/hg/gmp/rev/14a1c0840769
changeset: 17003:14a1c0840769
user: Torbjorn Granlund <torbjorng at google.com>
date: Mon Dec 14 00:13:18 2015 +0100
description:
Misc cleanups.
diffstat:
config.guess | 15 +++++++--------
1 files changed, 7 insertions(+), 8 deletions(-)
diffs (44 lines):
diff -r f2ffa3868121 -r 14a1c0840769 config.guess
--- a/config.guess Mon Dec 14 00:12:52 2015 +0100
+++ b/config.guess Mon Dec 14 00:13:18 2015 +0100
@@ -764,11 +764,11 @@
unsigned int cpuid (int, char *, char *, int);
int
-workaround_intel_skylake_bugs ()
+gmp_workaround_skylake_cpuid_bug ()
{
char feature_string[49];
char processor_name_string[49];
- const char *bad_cpus[] = {" G44", " G45", " G39" /* , "6600" */ };
+ static const char *bad_cpus[] = {" G44", " G45", " G39" /* , "6600" */ };
int i;
/* Example strings: */
@@ -776,13 +776,12 @@
/* "Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz" */
/* ^ ^ ^ */
/* 0x80000002 0x80000003 0x80000004 */
-
/* We match out just the 0x80000003 part here. */
- /* In there infinitive wisdom, Intel decided to use one register
- order for the vendor string, and another for the processor
- name string. We shuffle things about, rather than write a new
- variant of our assembly cpuid. */
+ /* In their infinitive wisdom, Intel decided to use one register order for
+ the vendor string, and another for the processor name string. We shuffle
+ things about here, rather than write a new variant of our assembly cpuid.
+ */
unsigned int eax, ebx, ecx, edx;
eax = CPUID (feature_string, 0x80000003);
@@ -894,7 +893,7 @@
as sandybridge for now. */
CPUID (feature_string, 7);
if ((feature_string[0 + 8 / 8] & (1 << (8 % 8))) == 0
- || workaround_intel_skylake_bugs())
+ || gmp_workaround_skylake_cpuid_bug ())
modelstr = "sandybridge";
}
More information about the gmp-commit
mailing list