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 ae2ee38..97b1b3a 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 4d22d64..86e5565 100644 (file)
@@ -22,7 +22,6 @@
 #define THREAD_H_INCLUDED
 
 #include <atomic>
-#include <bitset>
 #include <condition_variable>
 #include <mutex>
 #include <thread>