Computer Chess Club Archives


Search

Terms

Messages

Subject: Speed difference between BSF and BSR?

Author: Severi Salminen

Date: 01:32:21 11/26/00


Hi!

I use Bit Scan Forward and Bit Scan Reverse in my chess program to find indexes
of bits. Does it take longer (On pentium or Athlon PC) to find a bit which is
further than near the beginning of search? If I have a rook standing at a8
(which is position 63 in my program) should I use BSR instead of BSF? So, should
I have separate functions to start the scanning from LSB end and MSB end or
could I use the same function?

Is there any way to specify an inline assembler macro which returns a value? Now
I'm using a function. I'm using VC6++ Ent.

Severi



This page took 0.01 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.