Author: Nicolas Carrasco
Date: 14:36:27 11/29/99
Hi,
I am studying BITBOARDS programs and I had found this piece of code:
//////////////////////////////////////////////////////
int msb[65536];
BITBOARD mask;
msb[0]=16;
for (c=1;c<65536;c++)
{
mask=32768;
for (k=0;k<16;k++)
{
if (mask & c)
{
msb[c] = 15 - k;
break;
}
mask = mask>>1;
}
}
//////////////////////////////////////////////////////
That that code do?
How it is used at Bitboards?
Thanks
http://www.puntadeleste.to/uruchess/
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.