POV-Ray : Newsgroups : povray.off-topic : imperial vs metric : Re: imperial vs metric Server Time
4 Sep 2024 03:15:58 EDT (-0400)
  Re: imperial vs metric  
From: Orchid XP v8
Date: 25 Aug 2010 05:28:26
Message: <4c74e23a$1@news.povray.org>
>>>> 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...

-- 
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*


Post a reply to this message

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