mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Use a 32 bit bitwise 'and' in SimpleHash lookup
A bit faster on 32 bits machines, more similar to TranspositionTable::first_entry() and same result. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
0ddf84870a
commit
dcbc8a7e75
1 changed files with 1 additions and 1 deletions
2
src/tt.h
2
src/tt.h
|
@ -60,7 +60,7 @@ public:
|
|||
|
||||
~SimpleHash() { delete [] entries; }
|
||||
|
||||
Entry* find(Key key) const { return entries + unsigned(key & (HashSize - 1)); }
|
||||
Entry* find(Key key) const { return entries + ((uint32_t)key & (HashSize - 1)); }
|
||||
|
||||
protected:
|
||||
Entry* entries;
|
||||
|
|
Loading…
Add table
Reference in a new issue