Computer Chess Club Archives


Search

Terms

Messages

Subject: Crafty hash table question

Author: Alvaro Jose Povoa Cardoso

Date: 04:46:36 09/27/03



I'm a bit confused about the index 'hwhich' computation on the
'htable->always[hwhich]'
Could someone please explain the following crafty code?
   hwhich=((int)temp_hashkey>>log_hash)&1;

Why do we need '>>log_hash'
Couldn't it also be done with:
   hwhich=((int)temp_hashkey)&1;

Thanks in advance,
Alvaro Cardoso



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.