Article View: gnu.chess
Article #5183Re: PL69 slower ?
From: Dan Oetting
Date: Sun, 10 Apr 1994 17:54
Date: Sun, 10 Apr 1994 17:54
20 lines
1221 bytes
1221 bytes
Kong Sian suggested:
>Change
> if (history[j] < HISTORYLIM)
> history[j] += (unsigned short) 1 << depth;
>
>to
> if (history[j] < ((unsigned short) 1 << depth))
> history[j] = ((unsigned short) 1 << depth);
I think a more correct implimentation might be
if (history[j] < HISTORYLIM)
history[j] |= (unsigned short) 1 << depth;
thus only setting one bit per depth. As a further refinement, instead
of clearing the history every move, shift it down by one bit and preserve
the information gained from the previous move.
-- Dan O. <oetting@gldfs.cr.usgs.gov>
Technical Details
Message-ID:
<9404100824.AA27766@gldfs.cr.usgs.gov>Path:
arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!gldfs.cr.usgs.gov!oettingShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,eeb17e158c8984ff X-Google-Attributes: gid10d71d,public X-Google-ArrivalTime: 1994-04-10 10:54:22 PST Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!gldfs.cr.usgs.gov!oetting From: oetting@gldfs.cr.usgs.gov (Dan Oetting) Newsgroups: gnu.chess Subject: Re: PL69 slower ? Date: 10 Apr 1994 13:54:22 -0400 Organization: GNUs Not Usenet Lines: 22 Sender: daemon@cis.ohio-state.edu Distribution: gnu Message-ID: <9404100824.AA27766@gldfs.cr.usgs.gov>