Parent Directory | Revision Log | Patch
revision 1.7 by srw, Fri Jan 10 17:23:11 2003 UTC | revision 1.8 by srw, Mon Jun 30 11:28:39 2003 UTC | |
---|---|---|
# | Line 46 void TTPut (uint8_t side, uint8_t depth, | Line 46 void TTPut (uint8_t side, uint8_t depth, |
46 | { | { |
47 | HashSlot *t; | HashSlot *t; |
48 | ||
depth = depth/DEPTH; | ||
49 | t = HashTab[side] + ((HashKey & TTHashMask) & ~1); | t = HashTab[side] + ((HashKey & TTHashMask) & ~1); |
50 | if (depth < t->depth) | if (depth < t->depth) |
51 | t++; | t++; |
# | Line 91 uint8_t TTGet (uint8_t side, uint8_t dep | Line 90 uint8_t TTGet (uint8_t side, uint8_t dep |
90 | if (HashKey != t->key && HashKey != (++t)->key) | if (HashKey != t->key && HashKey != (++t)->key) |
91 | return (0); | return (0); |
92 | ||
depth = depth/DEPTH; | ||
93 | GoodGetHashCnt++; | GoodGetHashCnt++; |
94 | *move = t->move; | *move = t->move; |
95 | *score = t->score; | *score = t->score; |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |