Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Interesting numbers about hashing - 32 bits are clearly not enough

Author: Miguel A. Ballicora

Date: 21:22:19 12/06/01

Go up one level in this thread


On December 07, 2001 at 00:20:18, Miguel A. Ballicora wrote:

sorry, I pressed enter too early

int64tostring (long long x, char *s)
{ unsigned int a = x/1000000;
  unsigned int b = x%1000000;
  if (x>1000000)
     sprintf(s,"%d%d",a,b);
  else
     sprintf(s,"%d",b);
  return s;
}

then you use

long long x;
char buffer[64]
printf("nodes: %s\n",int64tostring(x,buffer));

Miguel



This page took 0.01 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.