www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/27/10:15:04

Message-ID: <c=GB%a=_%p=Indigo_Active_Vi%l=CRIANLARICH-970227150111Z-238@crianlarich.Indigo>
From: Robert Humphris <r DOT humphris AT indigo-avs DOT com>
To: "'Gurunandan R. Bhat'" <grbhat AT unigoa DOT ernet DOT in>
Cc: "'djGpp list'" <djgpp AT delorie DOT com>
Subject: RE: some advice required
Date: Thu, 27 Feb 1997 15:01:11 -0000
MIME-Version: 1.0

>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
>

I think that they are both the same! The speed ups with maths occur at
multiplicaton/division time
when you do the old bit shifts (<< & >>) instead.

If this is wrong, will some one please tell me, as I don't want to be
labouring upder misinformation

Rob Humphris

- Raw text -


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