65 void hash_store(
HashTable*,
const Board*,
const unsigned long long,
const int,
const int,
const int,
const int,
const int,
const int,
const int);
66 void hash_force(
HashTable*,
const Board*,
const unsigned long long,
const int,
const int,
const int,
const int,
const int,
const int,
const int);
70 void hash_feed(
HashTable*,
const Board*,
const unsigned long long,
const int,
const int,
const int,
const int,
const int);
75 extern unsigned long long hash_rank[16][256];
76 extern unsigned long long hash_move[64][60];
void hash_exclude_move(HashTable *, const Board *, const unsigned long long, const int)
HashData data
Definition: hash.h:38
unsigned int writeable_level(HashData *data)
make a level from date, cost, depth & selectivity.
Definition: hash-lock-free.c:208
void hash_print(const HashData *, FILE *)
print HashData content.
Definition: hash-lock-free.c:670
Hash * hash
Definition: hash.h:49
signed char upper
Definition: hash.h:30
void * memory
Definition: hash.h:48
signed char lower
Definition: hash.h:29
void hash_init(HashTable *, const unsigned long long)
Initialise the hashtable.
Definition: hash.c:86
unsigned long long hash_mask
Definition: hash.h:51
unsigned char selectivity
Definition: hash.h:26
void hash_force(HashTable *, const Board *, const unsigned long long, const int, const int, const int, const int, const int, const int, const int)
Store an hashtable item.
Definition: hash.c:583
unsigned long long hash_rank[16][256]
Definition: hash-lock-free.c:41
Board board
Definition: hash.h:37
bool hash_get(HashTable *, const Board *, const unsigned long long, HashData *)
Find an hash table entry according to the evaluated board hash codes.
Definition: hash.c:616
int n_hash
Definition: hash.h:53
Miscellaneous utilities header.
unsigned int lock_mask
Definition: hash.h:52
void hash_clear(HashTable *)
Clear the hashtable.
Definition: hash-lock-free.c:179
unsigned char date
Definition: hash.h:28
unsigned char cost
Definition: hash.h:27
unsigned long long hash_move[64][60]
Definition: hash-lock-free.c:44
void hash_store(HashTable *, const Board *, const unsigned long long, const int, const int, const int, const int, const int, const int, const int)
Store an hashtable item.
Definition: hash.c:544
void hash_free(HashTable *)
Free the hashtable.
Definition: hash-lock-free.c:195
unsigned char depth
Definition: hash.h:25
void hash_copy(const HashTable *, HashTable *)
Copy an hastable to another one.
Definition: hash-lock-free.c:652
SpinLock spin
Definition: hash.h:43
int n_lock
Definition: hash.h:54
unsigned char move[2]
Definition: hash.h:31
HashLock * lock
Definition: hash.h:50
void hash_feed(HashTable *, const Board *, const unsigned long long, const int, const int, const int, const int, const int)
feed hash table (from Cassio).
Definition: hash.c:489
void hash_move_init(void)
Initialize global hash move data.
Definition: hash-lock-free.c:70
void hash_cleanup(HashTable *)
Clear the hashtable.
Definition: hash-lock-free.c:159
unsigned char date
Definition: hash.h:55
const HashData HASH_DATA_INIT
Definition: hash-lock-free.c:47
#define HASH_COLLISIONS(x)
Definition: stats.h:25
struct HashTable HashTable
void hash_code_init(void)
Initialize global hash code data.
Definition: hash-lock-free.c:52