Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Bit Operation

Author: Dan Andersson

Date: 13:29:38 05/20/02

Go up one level in this thread


No, but you could make a code snippet yourself.
First swap even and odd bits. Piece of cake.
Secondly swap the reversed two bit packets.
Third Swap the reversed four bit packets.
And then you can continue that way, or cunningly use the byte swap instruction.
This would be about 13 instructions and maybe 21 clock cycles, depending on the
exact CPU.

MvH Dan Andersson



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.