Mail Archives: djgpp/1996/06/13/21:32:10
Richard Young (richard DOT young AT crc DOT doc DOT ca) wrote:
: With the powerful offset addressing modes of today's processors I find it hard
: to believe that
: for(i=n,px=x,py=y; i ; i--) *py++=*px++;
: is faster than
: for (i = 0; i < n; i++) x[i] = y[i];
Actually, you may be right, I wasn't aware that there is an address
mode that multiplies the index register by 4. Which one is actually
faster may depend on the processor type and maybe also on the
optimization level.
bye, Alexander
--
Alexander Lehmann, | "On the Internet,
alex AT hal DOT rhein-main DOT de (plain, MIME, NeXT) | nobody knows
lehmann AT mathematik DOT th-darmstadt DOT de (plain) | you're a dog."
!!CHANGED!! <URL:http://www.mathematik.th-darmstadt.de/~lehmann/>
- Raw text -