X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftt.h;h=fe4cee62ae39a83ec94ad3d232289daa94a7d395;hp=5ca5c237d82f7ec38974b56944b267c5c688a76b;hb=2f1935078da225c90f7887ed8c345cc7baebcfcc;hpb=8e71ee7ec6c1634af5d17f8ba43049f85ef42c53 diff --git a/src/tt.h b/src/tt.h index 5ca5c237..fe4cee62 100644 --- a/src/tt.h +++ b/src/tt.h @@ -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;