aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorGavin Andresen <[email protected]>2010-10-05 14:14:17 -0400
committerGavin Andresen <[email protected]>2010-10-05 14:14:17 -0400
commita2ae4a8a0f245f6738e5b72b97dbcd45fc107321 (patch)
tree27a82e7431a876901312540ef612a16773c891c6 /main.cpp
parentMerge remote branch 'refs/remotes/svn/trunk' into svn (diff)
parentRussian translation by eurekafag (diff)
downloaddiscoin-a2ae4a8a0f245f6738e5b72b97dbcd45fc107321.tar.xz
discoin-a2ae4a8a0f245f6738e5b72b97dbcd45fc107321.zip
Merge remote branch 'remotes/svn/trunk' into svn
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index a70dd7cc1..dd13bb7f1 100644
--- a/main.cpp
+++ b/main.cpp
@@ -2831,6 +2831,10 @@ bool Detect128BitSSE2()
bool fUseSSE2 = ((fIntel && nFamily * 10000 + nModel >= 60026) ||
(fAMD && nFamily * 10000 + nModel >= 160010));
+ // AMD reports a lower model number in 64-bit mode
+ if (fAMD && sizeof(void*) > 4 && nFamily * 10000 + nModel >= 160000)
+ fUseSSE2 = true;
+
static bool fPrinted;
if (!fPrinted)
{