POV-Ray : Newsgroups : povray.off-topic : imperial vs metric : Re: imperial vs metric Server Time
4 Sep 2024 03:14:57 EDT (-0400)
  Re: imperial vs metric  
From: Jim Henderson
Date: 24 Aug 2010 17:03:10
Message: <4c74338e$1@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.