diff options
author | tege <tege@gmplib.org> | 2008-05-22 12:15:09 +0200 |
---|---|---|
committer | tege <tege@gmplib.org> | 2008-05-22 12:15:09 +0200 |
commit | d2cb7c1c1c12e892d45d90838926cefe3cc17b58 (patch) | |
tree | 95fcefbaf49d8d8d4d3d41ab1d654d2271288a10 /config.guess | |
parent | b23626f1454a8a407d67a643bb28db679534405b (diff) | |
download | gmp-d2cb7c1c1c12e892d45d90838926cefe3cc17b58.tar.gz |
Properly handle the "extended" variants of x86 cpuid.
Diffstat (limited to 'config.guess')
-rwxr-xr-x | config.guess | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config.guess b/config.guess index 69f9398df..d8c516014 100755 --- a/config.guess +++ b/config.guess @@ -704,9 +704,9 @@ main () fms = cpuid (dummy_string, 1); - family = (fms >> 8) & 15; - model = (fms >> 4) & 15; - stepping = fms & 15; + family = ((fms >> 8) & 0xf) + ((fms >> 20) & 0xff); + model = ((fms >> 4) & 0xf) + ((fms >> 12) & 0xf0); + stepping = fms & 0xf; modelstr = "i486"; if (strcmp (vendor_string, "GenuineIntel") == 0) |