3 Copyright (c) Scott Gasch
11 Pawn structure score hashing code.
19 $Id: pawnhash.c 345 2007-12-02 22:56:42Z scott $
27 PawnHashLookup(SEARCHER_THREAD_CONTEXT *ctx)
32 Called by eval with a pointer to a POSITION, look in our pawn hash
33 to see if we have an entry that matches the pawn structure in the
34 POSITION. If so, "check out" that entry and return a pointer to
37 Note: there is a multi-probing scheme in place to remove
38 contention on MP machines.
50 POSITION *pos = &(ctx->sPosition);
51 ULONG u = (ULONG)pos->u64PawnSig & (PAWN_HASH_TABLE_SIZE - 1);
52 return(&(ctx->rgPawnHash[u]));