Assorted code style and comments in pawns.cpp and pawns.h

The only interesting thing is that a backward or isolated
pawn cannot be a candidate passer, so code this condition.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2011-04-09 19:50:56 +01:00
parent 8e71ee7ec6
commit 2f1935078d
4 changed files with 65 additions and 83 deletions

View File

@@ -51,6 +51,7 @@ public:
virtual ~SimpleHash() { delete [] entries; }
Entry* find(Key key) const { return entries + ((uint32_t)key & (HashSize - 1)); }
void prefetch(Key key) const { ::prefetch((char*)find(key)); }
protected:
Entry* entries;