Skip to content

Commit

Permalink
vs2015対応
Browse files Browse the repository at this point in the history
  • Loading branch information
ai5 committed Sep 9, 2015
1 parent 3953185 commit 154e5c8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Apery/Apery.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v140</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<WholeProgramOptimization>PGOptimize</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='HiyokoRelease|x64'" Label="Configuration">
Expand Down
10 changes: 10 additions & 0 deletions src/evaluate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,17 @@ template <typename KPPType, typename KKPType, typename KKType> struct EvaluaterB
std::tuple<Color, File, Rank> ituple = std::make_tuple(icolor, diff_file_kito, diff_rank_kito);
std::tuple<Color, File, Rank> jtuple = std::make_tuple(jcolor, diff_file_kjto, diff_rank_kjto);
if (jtuple < ituple)
{
#if 0
std::swap(ituple, jtuple);
#else
std::tuple<Color, File, Rank> temp;
temp = ituple;
ituple = jtuple;
jtuple = temp;
#endif
}

ret[retIdx++] = std::make_pair(&r_kee[std::get<0>(ituple)][R_Mid + std::get<1>(ituple)][R_Mid + std::get<2>(ituple)][std::get<0>(jtuple)][R_Mid + std::get<1>(jtuple)][R_Mid + std::get<2>(jtuple)] - &oneArrayKPP[0], MaxWeight() >> (distance+2));
}
Square ito_tmp = ito;
Expand Down
3 changes: 0 additions & 3 deletions src/thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ void ThreadPool::exit() {
deleteThread(elem);
}

ThreadPool::~ThreadPool() {
}

void ThreadPool::readUSIOptions(Searcher* s) {
maxThreadsPerSplitPoint_ = s->options["Max_Threads_per_Split_Point"];
const size_t requested = s->options["Threads"];
Expand Down

0 comments on commit 154e5c8

Please sign in to comment.