Subversion Repositories Games.Chess Giants

Rev

Rev 33 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33 Rev 108
Line 35... Line 35...
35
    return lsb[arg1 >> 32 & 65535] + 32;
35
    return lsb[arg1 >> 32 & 65535] + 32;
36
  return lsb[arg1 >> 48] + 48;
36
  return lsb[arg1 >> 48] + 48;
37
}
37
}
38
 
38
 
39
int PopCnt(uint64_t arg1) {
39
int PopCnt(uint64_t arg1) {
40
  int c = 1;
40
  int c;
-
 
41
 
41
  while (arg1 &= arg1 - 1)
42
  for (c = 0; arg1; c++) // Pierre-Marie Baty -- wrong variable name
42
    c++;
43
    arg1 &= arg1 - 1; // Pierre-Marie Baty -- wrong variable name
43
  return c;
44
  return c;
44
}
45
}
45
#endif
46
#endif