summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7c93b17)
Instead of going for the whole 4 cycle loop early
skip if TT entry is empty.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
tte = replace = entries + int(pos.get_key() & (size - 1)) * 4;
for (int i = 0; i < 4; i++)
{
tte = replace = entries + int(pos.get_key() & (size - 1)) * 4;
for (int i = 0; i < 4; i++)
{
+ if (!(tte+i)->key()) // still empty
+ {
+ *(tte+i) = TTEntry(pos.get_key(), v, type, d, m, generation);
+ writes++;
+ return;
+ }
if ((tte+i)->key() == pos.get_key())
{
if (m == MOVE_NONE)
if ((tte+i)->key() == pos.get_key())
{
if (m == MOVE_NONE)