mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Trivial code style fixes
Mainly to sync mine and official repo. No functional change.
This commit is contained in:
parent
222f59b9c1
commit
a1b62d68ec
6 changed files with 7 additions and 6 deletions
|
@ -22,6 +22,7 @@
|
|||
#define BITBOARD_H_INCLUDED
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "types.h"
|
||||
|
||||
namespace Bitboards {
|
||||
|
|
|
@ -25,12 +25,12 @@
|
|||
|
||||
#include "bitcount.h"
|
||||
#include "movegen.h"
|
||||
#include "notation.h"
|
||||
#include "position.h"
|
||||
#include "psqtab.h"
|
||||
#include "rkiss.h"
|
||||
#include "thread.h"
|
||||
#include "tt.h"
|
||||
#include "notation.h"
|
||||
|
||||
using std::string;
|
||||
|
||||
|
|
|
@ -126,6 +126,7 @@ void Search::init() {
|
|||
{
|
||||
double pvRed = 0.00 + log(double(hd)) * log(double(mc)) / 3.00;
|
||||
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[0][1][hd][mc] = int8_t(nonPVRed >= 1.0 ? nonPVRed + 0.5: 0);
|
||||
|
||||
|
|
3
src/tt.h
3
src/tt.h
|
@ -50,8 +50,8 @@ private:
|
|||
move16 = (uint16_t)m;
|
||||
value16 = (int16_t)v;
|
||||
evalValue = (int16_t)ev;
|
||||
genBound8 = (uint8_t)(g | b);
|
||||
depth8 = (uint8_t)(d - DEPTH_NONE);
|
||||
genBound8 = g | (uint8_t)b;
|
||||
}
|
||||
|
||||
uint16_t key16;
|
||||
|
@ -70,7 +70,6 @@ private:
|
|||
const unsigned TTClusterSize = 3;
|
||||
|
||||
struct TTCluster {
|
||||
|
||||
TTEntry entry[TTClusterSize];
|
||||
char padding[2];
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue