[prev in list] [next in list] [prev in thread] [next in thread] 

List:       argante
Subject:    [argante] Re: My vote on more opcodes
From:       Mariusz Mazur <mariusz () isn ! pl>
Date:       2001-05-07 15:12:01
[Download RAW message or body]



MW> On Fri, 4 May 2001, Mariusz Mazur wrote:

>> Come to think about it... lcamtuf is right.
>> 
>> if x==5
>> a=a*(-1);
>> roll x, a;
>> 
>> is smaller then
>> 
>> if x==5
>> ror x, a
>> else
>> rol x, a
>> 

MW> khm... but I got an interesting question: "is it faster?"

imho yes (it depends on the situation though)... still one roll (and
shift) taking a signed argument is much more flexible (and thus can be
faster if you optimize well)...




Mariusz Mazur
"One Ring to bring them all and in the darkness bind them"


-- -----------------------------------------------------------------------
   Unsubscribe: mail argante-request@linuxpl.org -s unsubscribe </dev/null

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic