|
![](/i/fill.gif) |
In article <3e36ba51@news.povray.org> , "Vadim Sytnikov" <syt### [at] ru com>
wrote:
>> The compiler will always generate a shift opcode for integer/2,
>> regardless of whether 'integer' is signed or unsigned. Processors
>> have two kinds of shift right opcode for this.
>> IIRC, this applies to integer>>1 as well. Thus they are
>> completely equivalent.
>
> Well, they are *not* equivalent.
They are equivalent in the sense Warp means it also he didn't put it very
well in what sense he means it :-)
There are logical and arithmetic shift instructions which work for signed
and unsigned shifts no matter what direction. No need to make a big fuss
about it ;-)
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
![](/i/fill.gif) |