Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Visual C++ question

Author: Bo Persson

Date: 01:35:43 05/15/05

Go up one level in this thread


On May 14, 2005 at 18:47:38, Tony Werten wrote:

>Hi,
>
>when I use the compiler intrinsic __ull_rshift it has the (undocumented) feature
>of wrapping the shift amount around 32.
>
>What do I have to use to shift with more than 32 ?
>
>Cheers,
>
>Tony

You have to shift in the other direction.  :-)

Masking the shift count is a hardware thing, done to improve the interrupt
response time. If you were allowed to shift or rotate 4 billion times, the CPU
would be unusable in real-time systems.


Bo Persson



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.