enabled non pawn corrhist | bench 6547831
This commit is contained in:
1 parent
32691d2d65
commit
1c4762e872
1 file changed
+5
-5
+5
-5
@@ -52,7 +52,7 @@ class CorrHist {
|
||||
private:
|
||||
// indexed by [stm][key]
|
||||
MultiArray<int, 2, CORRHIST_SIZE> pawnHist;
|
||||
//MultiArray<int, 2, CORRHIST_SIZE> nonPawnHist;
|
||||
MultiArray<int, 2, CORRHIST_SIZE> nonPawnHist;
|
||||
public:
|
||||
void Update(Board& board, int depth, int diff, int* entry) {
|
||||
const int scaledDiff = diff * CORRHIST_GRAIN;
|
||||
@@ -64,17 +64,17 @@ public:
|
||||
|
||||
void UpdateAll(Board& board, int depth, int diff) {
|
||||
Update(board, depth, diff, &pawnHist[board.sideToMove][board.pawnKey % CORRHIST_SIZE]);
|
||||
//Update(board, depth, diff, &nonPawnHist[board.sideToMove][board.nonPawnKey % CORRHIST_SIZE]);
|
||||
Update(board, depth, diff, &nonPawnHist[board.sideToMove][board.nonPawnKey % CORRHIST_SIZE]);
|
||||
}
|
||||
|
||||
int GetAllHist(Board& board) {
|
||||
return pawnHist[board.sideToMove][board.pawnKey % CORRHIST_SIZE];
|
||||
// + nonPawnHist[board.sideToMove][board.nonPawnKey % CORRHIST_SIZE];
|
||||
return pawnHist[board.sideToMove][board.pawnKey % CORRHIST_SIZE]
|
||||
+ nonPawnHist[board.sideToMove][board.nonPawnKey % CORRHIST_SIZE];
|
||||
}
|
||||
|
||||
void Clear() {
|
||||
std::fill(&pawnHist[0][0], &pawnHist[0][0] + sizeof(pawnHist) / sizeof(int), 0);
|
||||
//std::fill(&nonPawnHist[0][0], &nonPawnHist[0][0] + sizeof(nonPawnHist) / sizeof(int), 0);
|
||||
std::fill(&nonPawnHist[0][0], &nonPawnHist[0][0] + sizeof(nonPawnHist) / sizeof(int), 0);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user