Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Experimentation with move ordering

Author: Eugene Nalimov

Date: 01:38:33 11/29/00

Go up one level in this thread


On November 29, 2000 at 02:53:42, Jeremiah Penery wrote:

>On November 28, 2000 at 23:59:14, Ed Schröder wrote:
>
>>Especially multiplies has been improved dramatically in the latest
>>generation of processors. Nowadays it is hardly an issue anymore. I
>>still use << where ever I can but I have no problems to use * so now
>>and then.
>
>It seems like compilers should produce the same assembly code for things like
>a<<1 and a*2, but of course I'm not sure if they do.  Ditto for a>>1 and a/2.
>(and also <<2 = *4, etc.)

Of course a>>1 and a/2 should generate different code (hint: check value of both
expressions for a == -1).

Eugene



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.