delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/21/04:58:32

Date: Tue, 21 Jan 1997 11:04:02 +0100 (MET)
From: Jan Hubicka <hubicka AT ta DOT jcu DOT cz>
To: djgpp AT delorie DOT com
Subject: vertical line copying
Message-ID: <Pine.LNX.3.91.970121105955.17981A-100000@tabor.ta.jcu.cz>
MIME-Version: 1.0

Hi
I profiled XaoS and about 14% of time is spent by copying one vertical line
to another(horizontal lines are done using memcpy so they are much faster)
So I asking for your best tips how to unroll such loop. Current ugly 
version is:
for(; vbuff<vend ; vbuff+=scanline, vsrc+= scanline) *vbuff=*vsrc;
some onrolling? or handling vsrc as distance from vbuff(should be done 
using addressing) or some other tips?

BTW someone interested in working on XaoS?

Honza

------------------------------------------------------------------------------
                   Have you browsed my www pages? Look at:
                       http://www.paru.cas.cz/~hubicka
      Koules-the game for Svgalib,X11 and OS/2,  Xonix-the game for X11
      czech documentation for linux index, original 2D computer art and
              funny 100 years old photos and articles are there!

- Raw text -


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