Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Mirroring a 32bit bitboard

Author: Gunnar Andersson

Date: 08:01:01 04/10/02

Go up one level in this thread


On April 09, 2002 at 21:48:43, martin fierz wrote:

>is there any reason for not using this:
>unsigned int revword[65536];
>
>int revert(int32 n)
>	// reverses a 32-bit integer
>	{
>	return(	revword[hiword(n)]+revword[loword(n)]<<16);
>	}
>
>hiword and loword are shift/mask macros like in your code above.
>which is (a slightly improved) version of my code which alvaro is trying to
>improve upon? i mean, is there some reason why you use a byte instead of word
>table? and use bytes instead of ints in the table?

Cache performance.

/ Gunnar




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.