Computer Chess Club Archives


Search

Terms

Messages

Subject: YABRA

Author: Dann Corbit

Date: 20:09:24 01/24/03


typedef unsigned __int64 Bitboard;
/*
From:
http://www.mostang.com/~davidm/papers/expo97/paper/doc005.html
*/
Bitboard byterev_long (Bitboard L) {
  static const Bitboard mask = 0x0101010101010101;
  return (((L & (mask << 0)) << 7) | ((L >> 7) & (mask << 0)) |
          ((L & (mask << 1)) << 5) | ((L >> 5) & (mask << 1)) |
          ((L & (mask << 2)) << 3) | ((L >> 3) & (mask << 2)) |
          ((L & (mask << 3)) << 1) | ((L >> 1) & (mask << 3)));
}




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.