summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortanjent@gmail.com <tanjent@gmail.com@77a7d1d3-4c08-bdc2-d393-d5859734b01a>2011-04-04 23:29:25 +0000
committertanjent@gmail.com <tanjent@gmail.com@77a7d1d3-4c08-bdc2-d393-d5859734b01a>2011-04-04 23:29:25 +0000
commit9715053bffb6aa255104427c756084e815e530aa (patch)
tree772612db53e78f177e534bfbef3c0d6b874460ba
parent4be8e18e62864ae1f1c34ad440822ee046405ee7 (diff)
downloadsrc-9715053bffb6aa255104427c756084e815e530aa.tar.gz
fix cpu affinity mask
git-svn-id: http://smhasher.googlecode.com/svn/trunk@122 77a7d1d3-4c08-bdc2-d393-d5859734b01a
-rw-r--r--main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 8c76468..eaab22f 100644
--- a/main.cpp
+++ b/main.cpp
@@ -549,7 +549,9 @@ int main ( int argc, char ** argv )
hashToTest = argv[1];
}
- SetAffinity(3);
+ // Code runs on the 3rd CPU by default
+
+ SetAffinity((1 << 2));
SelfTest();