mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 09:37:16 +08:00
Move pawn and material tables under Thread class
This change allows to remove some quite a bit of code and seems the natural thing to do. Introduced file thread.cpp to move away from search.cpp a lot of threads related stuff. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
8
src/tt.h
8
src/tt.h
@@ -142,13 +142,11 @@ inline void TranspositionTable::refresh(const TTEntry* tte) const {
|
||||
/// Without cluster concept or overwrite policy.
|
||||
|
||||
template<class Entry, int HashSize>
|
||||
class SimpleHash {
|
||||
struct SimpleHash {
|
||||
|
||||
SimpleHash(const SimpleHash&);
|
||||
SimpleHash& operator=(const SimpleHash&);
|
||||
typedef SimpleHash<Entry, HashSize> Base;
|
||||
|
||||
public:
|
||||
SimpleHash() {
|
||||
void init() {
|
||||
|
||||
entries = new (std::nothrow) Entry[HashSize];
|
||||
if (!entries)
|
||||
|
||||
Reference in New Issue
Block a user