|
![](/i/fill.gif) |
On Tue, 24 Aug 2010 15:33:19 -0400, Jim Henderson wrote:
> On Tue, 24 Aug 2010 17:18:01 +0100, Orchid XP v8 wrote:
>
>>>> Shifts are perfectly legitimate mathematical operations. Many of the
>>>> things computers do couldn't be done easily without a shift operation
>>>> :P
>>>
>>> Binary shifts are multiplication and division as well. :P
>>
>> What you want is binary rotations. ;-)
>
> That depends on whether the bits actually get rotated. From my
> recollection of x86 assembly, it's a shift, not a rotation. :)
>
> Jim
My recollection, of course, has changed now that I re-read this, I
remember ROR and ROL operators, which do in fact rotate. I just remember
using SHL and SHR more frequently.
Jim
Post a reply to this message
|
![](/i/fill.gif) |