www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/27/21:23:20

To: djgpp AT delorie DOT com
Subject: Re: some advice required
Message-ID: <19970227.181936.4687.0.chambersb@juno.com>
References: <Pine DOT LNX DOT 3 DOT 91 DOT 970227000104 DOT 2463A-100000 AT aditya DOT unigoa DOT ernet DOT in>
From: chambersb AT juno DOT com (Benjamin D Chambers)
Date: Thu, 27 Feb 1997 21:16:29 EST

On Thu, 27 Feb 1997 00:03:44 +0000 (   ) "Gurunandan R. Bhat"
<grbhat AT unigoa DOT ernet DOT in> writes:
>greetings,
>	will a kind assembly guru pick this nit please: assuming that 
>x+y 
>and x|y give me the same result, which one is faster? 
>
>	thanks in advance
>
>gurunandan bhat
>
+ is one cycle (on 486+)
| is one cycle (on 486+)

Shouldn't make a difference.
(Note: that one cycle thing is when both are registers.  If one is
memory, things go _slow_ (as in, up to 3 times slower)).

...Chambers

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019