Computer Chess Club Archives


Search

Terms

Messages

Subject: How does SHR/SHL work?

Author: Severi Salminen

Date: 10:38:43 02/14/01


Hi!

I managed to speedup my movegenerator quite a bit making the crucial assembler
functions completely branchless. Then I noticed one thing I was not quite sure
about. I was using SHR eax,cl with values of cl more than 32 - first I didn't
consider this possibility. So: Is SHR eax,33 same as SHR eax,1 - is cl allways
between 0 and 32? It seems to be. Everything seemed to function just right so
was I just very lucky to _not_ notice this before trying?

Severi



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.