Article View: gnu.chess
Article #5119More fixes
From: Chua Kong Sian
Date: Wed, 16 Feb 1994 01:26
Date: Wed, 16 Feb 1994 01:26
18 lines
1220 bytes
1220 bytes
I have a couple more fixes to suggest. In ZeroTTable() in util.c, the
2 memset lines should be changed to this.
memset(ttable[white],0,(unsigned long)(sizeof(struct hashentry)*
(ttblsize+rehash)));
memset(ttable[black],0,(unsigned long)(sizeof(struct hashentry)*
(ttblsize+rehash)));
In GetGame() in dspcom.c, I would suggest that the hashtable be cleared
with a ZeroTTable() call. This can be added somewhere very near
the end of the function. This is necessary especially when running
gnuchess through the test suite as an uncleared hashtable will result in
poor results.
Kong Sian
Technical Details
Message-ID:
<2jrsov$ohe@nuscc.nus.sg>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!raffles.technet.sg!nuscc.nus.sg!nsrccksShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,c9f1bca867cc4b5,start X-Google-Attributes: gid10d71d,public X-Google-ArrivalTime: 1994-02-15 17:26:55 PST Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!raffles.technet.sg!nuscc.nus.sg!nsrccks From: nsrccks@leonis.nus.sg (Chua Kong Sian) Newsgroups: gnu.chess Subject: More fixes Date: 16 Feb 1994 01:26:55 GMT Organization: National University of Singapore Lines: 18 Message-ID: <2jrsov$ohe@nuscc.nus.sg> NNTP-Posting-Host: leonis.nus.sg X-Newsreader: TIN [version 1.2 PL0]