Skip to content

Commit

Permalink
Windows版バイナリ配布用設定。
Browse files Browse the repository at this point in the history
boost無しでビルド可能にもしておく。
  • Loading branch information
HiraokaTakuya committed Nov 24, 2015
1 parent 51d721e commit 10100b2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <ctime>
#include <cmath>
#include <cstddef>
#include <boost/align/aligned_alloc.hpp>
//#include <boost/align/aligned_alloc.hpp>

#if defined HAVE_BMI2
#include <immintrin.h>
Expand Down Expand Up @@ -251,7 +251,7 @@ using Key = u64;
template <typename T, size_t Size>
struct HashTable {
HashTable() {
entries_ = (T*)(boost::alignment::aligned_alloc(sizeof(T), sizeof(T)*Size));
//entries_ = (T*)(boost::alignment::aligned_alloc(sizeof(T), sizeof(T)*Size));
clear();
}
T* operator [] (const Key k) { return entries_ + (static_cast<size_t>(k) & (Size-1)); }
Expand All @@ -260,7 +260,8 @@ struct HashTable {
static_assert((Size & (Size-1)) == 0, "");

private:
T* entries_;
//T* entries_;
T entries_[Size];
};

// ミリ秒単位の時間を表すクラス
Expand Down
4 changes: 2 additions & 2 deletions src/evaluate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1143,8 +1143,8 @@ class Position;
struct SearchStack;

#if defined USE_EHASH
//const size_t EvaluateTableSize = 0x400000; // 134MB
const size_t EvaluateTableSize = 0x10000000; // 8GB
const size_t EvaluateTableSize = 0x400000; // 134MB
//const size_t EvaluateTableSize = 0x10000000; // 8GB
//const size_t EvaluateTableSize = 0x20000000; // 17GB

using EvaluateHashEntry = EvalSum;
Expand Down
2 changes: 1 addition & 1 deletion src/usi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ namespace {
}

void OptionsMap::init(Searcher* s) {
(*this)["USI_Hash"] = USIOption(32, 1, 65536, onHashSize, s);
(*this)["USI_Hash"] = USIOption(256, 1, 65536, onHashSize, s);
(*this)["Clear_Hash"] = USIOption(onClearHash, s);
(*this)["Book_File"] = USIOption("book/20150503/book.bin");
(*this)["Best_Book_Move"] = USIOption(false);
Expand Down

0 comments on commit 10100b2

Please sign in to comment.