Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: algorithm question

Author: Reinhard Scharnagl

Date: 11:51:04 03/02/06

Go up one level in this thread


On February 28, 2006 at 15:31:52, Gerd Isenberg wrote:

>On February 28, 2006 at 08:04:06, Reinhard Scharnagl wrote:
>
>>On February 28, 2006 at 07:07:23, h.g.muller wrote:
>>
>>>On February 28, 2006 at 02:57:37, Reinhard Scharnagl wrote:
>>>
>>>>
>>>>When I had been working with a 0x88 structure I used to iterate by:
>>>>
>>>>coor = ((coor | ~0x77) + 1) & 0x77;
>>
>>Those days I missed to do the following (valid only in that context):
>>
>>((coor | ~0x77) + 1) & 0x77 ==
>>( coor + ~0x77  + 1) & 0x77 ==
>>(coor + (~0x77 + 1)) & 0x77 ==
>>(coor + (-0x77)    ) & 0x77 ==
>>(coor - 0x77) & 0x77
>>
>>what would have had the suggested form then.
>>
>>Reinhard.
>
>Oups - and i missed that you found the solution already!
>
>Sorry,
>Gerd

See also at:
http://f51.parsimony.net/cgi-bin/topic-flat.cgi?Nummer=203932&Phase=Phase1&ThreadNummer=31

Reinhard.



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.