diff options
author | Torbjorn Granlund <torbjorng@google.com> | 2015-12-14 00:13:18 +0100 |
---|---|---|
committer | Torbjorn Granlund <torbjorng@google.com> | 2015-12-14 00:13:18 +0100 |
commit | 25471cd16e1f3d1d7fc65c87fb2bd67e2e7d4219 (patch) | |
tree | a786dd194eea3ff1e80306e1ae668bfd03d41c97 /config.guess | |
parent | 532d6803a54b27e7fc7d163c9f92b6d68a52af39 (diff) | |
download | gmp-25471cd16e1f3d1d7fc65c87fb2bd67e2e7d4219.tar.gz |
Misc cleanups.
Diffstat (limited to 'config.guess')
-rwxr-xr-x | config.guess | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/config.guess b/config.guess index 7262e91c9..744e11e49 100755 --- a/config.guess +++ b/config.guess @@ -764,11 +764,11 @@ extern "C" 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 @@ workaround_intel_skylake_bugs () /* "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 @@ main () 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"; } |