1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 08:43:09 +00:00

Trivial code style fixes

Mainly to sync mine and official repo.

No functional change.
This commit is contained in:
Marco Costalba 2014-09-30 09:05:20 +02:00
parent 222f59b9c1
commit a1b62d68ec
6 changed files with 7 additions and 6 deletions

View file

@ -22,6 +22,7 @@
#define BITBOARD_H_INCLUDED #define BITBOARD_H_INCLUDED
#include <string> #include <string>
#include "types.h" #include "types.h"
namespace Bitboards { namespace Bitboards {

View file

@ -25,12 +25,12 @@
#include "bitcount.h" #include "bitcount.h"
#include "movegen.h" #include "movegen.h"
#include "notation.h"
#include "position.h" #include "position.h"
#include "psqtab.h" #include "psqtab.h"
#include "rkiss.h" #include "rkiss.h"
#include "thread.h" #include "thread.h"
#include "tt.h" #include "tt.h"
#include "notation.h"
using std::string; using std::string;

View file

@ -126,6 +126,7 @@ void Search::init() {
{ {
double pvRed = 0.00 + log(double(hd)) * log(double(mc)) / 3.00; double pvRed = 0.00 + log(double(hd)) * log(double(mc)) / 3.00;
double nonPVRed = 0.33 + log(double(hd)) * log(double(mc)) / 2.25; double nonPVRed = 0.33 + log(double(hd)) * log(double(mc)) / 2.25;
Reductions[1][1][hd][mc] = int8_t( pvRed >= 1.0 ? pvRed + 0.5: 0); Reductions[1][1][hd][mc] = int8_t( pvRed >= 1.0 ? pvRed + 0.5: 0);
Reductions[0][1][hd][mc] = int8_t(nonPVRed >= 1.0 ? nonPVRed + 0.5: 0); Reductions[0][1][hd][mc] = int8_t(nonPVRed >= 1.0 ? nonPVRed + 0.5: 0);

View file

@ -50,8 +50,8 @@ private:
move16 = (uint16_t)m; move16 = (uint16_t)m;
value16 = (int16_t)v; value16 = (int16_t)v;
evalValue = (int16_t)ev; evalValue = (int16_t)ev;
genBound8 = (uint8_t)(g | b);
depth8 = (uint8_t)(d - DEPTH_NONE); depth8 = (uint8_t)(d - DEPTH_NONE);
genBound8 = g | (uint8_t)b;
} }
uint16_t key16; uint16_t key16;
@ -70,7 +70,6 @@ private:
const unsigned TTClusterSize = 3; const unsigned TTClusterSize = 3;
struct TTCluster { struct TTCluster {
TTEntry entry[TTClusterSize]; TTEntry entry[TTClusterSize];
char padding[2]; char padding[2];
}; };