mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-17 23:56:23 +08:00
Introduce namespace Bitbases
Let's continue this namespace galore... No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -62,14 +62,14 @@ namespace {
|
||||
}
|
||||
|
||||
|
||||
uint32_t probe_kpk_bitbase(Square wksq, Square wpsq, Square bksq, Color stm) {
|
||||
uint32_t Bitbases::probe_kpk(Square wksq, Square wpsq, Square bksq, Color stm) {
|
||||
|
||||
int idx = index(wksq, bksq, wpsq, stm);
|
||||
return KPKBitbase[idx / 32] & (1 << (idx & 31));
|
||||
}
|
||||
|
||||
|
||||
void kpk_bitbase_init() {
|
||||
void Bitbases::init_kpk() {
|
||||
|
||||
Result db[IndexMax];
|
||||
KPKPosition pos;
|
||||
|
||||
Reference in New Issue
Block a user