Remove int to int conversion, unused include.
authorJoost VandeVondele <Joost.VandeVondele@gmail.com>
Wed, 10 May 2017 01:36:18 +0000 (18:36 -0700)
committerJoona Kiiski <joona@zoox.com>
Wed, 10 May 2017 01:36:32 +0000 (18:36 -0700)
No functional change.

Closes #1112

src/movepick.h
src/thread.h

index ae2ee3814ea838acf096ef3c73d3135892b16607..97b1b3abb7f1aaeded105cb068e47b6ceab15c69 100644 (file)
@@ -43,10 +43,10 @@ struct HistoryStats {
 
     const int D = 324;
 
-    assert(abs(int(v)) <= D); // Consistency check for below formula
+    assert(abs(v) <= D); // Consistency check for below formula
 
-    table[c][from][to] -= table[c][from][to] * abs(int(v)) / D;
-    table[c][from][to] += int(v) * 32;
+    table[c][from][to] -= table[c][from][to] * abs(v) / D;
+    table[c][from][to] += v * 32;
   }
 
 private:
@@ -70,10 +70,10 @@ struct Stats {
 
     const int D = 936;
 
-    assert(abs(int(v)) <= D); // Consistency check for below formula
+    assert(abs(v) <= D); // Consistency check for below formula
 
-    table[pc][to] -= table[pc][to] * abs(int(v)) / D;
-    table[pc][to] += int(v) * 32;
+    table[pc][to] -= table[pc][to] * abs(v) / D;
+    table[pc][to] += v * 32;
   }
 
 private:
index 4d22d643c0360926f117709ee05c988bc1b6bb9d..86e5565f2e3363667bbf07a34a777fdec56f5b70 100644 (file)
@@ -22,7 +22,6 @@
 #define THREAD_H_INCLUDED
 
 #include <atomic>
-#include <bitset>
 #include <condition_variable>
 #include <mutex>
 #include <thread>