]> git.sesse.net Git - stockfish/commitdiff
Simplify futility margins formula
authorChris Caino <chricainogithub@gmail.com>
Tue, 22 Oct 2013 21:05:15 +0000 (23:05 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Tue, 22 Oct 2013 21:06:06 +0000 (23:06 +0200)
New formula mathces the old formula until d = 45

Test code:

int main() {

  for(int d=1; d<=45; d++)
  {
     int a = int(log(double(d * d) / 2) / log(2.0) + 1.001);
     int b = int(2.9 * log(double(d)));

     if (a != b) std::cout << d << std::endl;
  }

  return 0;
}

bench: 8455956


No differences found