POV-Ray : Newsgroups : povray.off-topic : imperial vs metric : Re: imperial vs metric Server Time
4 Sep 2024 05:16:19 EDT (-0400)
  Re: imperial vs metric  
From: Jim Henderson
Date: 26 Aug 2010 16:15:27
Message: <4c76cb5f$1@news.povray.org>
On Wed, 25 Aug 2010 10:28:25 +0100, Orchid XP v8 wrote:

>>>>> 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.
> 
> Whether your processor supports it or not, binary rotations exist. You
> can implement them the hard way if you must. I've seen a few block
> ciphers that use 'em too...

Well, that's why I said what I said about my faulty recollection. ;-)

Jim


Post a reply to this message

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