Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: boundschecking

Author: Severi Salminen

Date: 11:59:33 11/04/02

Go up one level in this thread


>>__int64 rand64()
>>{
>>	return rand()^((__int64)rand()<<15)^((__int64)rand()<<30)^
>>		((__int64)rand()<<45)^((__int64)rand()<<60);
>>}
>>
>
>It can't be a coincidence that all 3 of your numbers are way too small. Try
>using 5 local variables (int64). Xor everything for result. ( so all local
>variables have the shift already) I think that if you check the local variables
>you'll find the problem.

I think it is because printf("%d"); can't print 64-bit numbers right, right? ;)

Severi



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.