Date: Wed, 10 Mar 1999 10:47:17 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Michael Stewart cc: djgpp AT delorie DOT com Subject: Re: HELP!! need fast initialisation-function for virtual-buffer! In-Reply-To: <7c3p0u$fll$1@news5.svr.pol.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Tue, 9 Mar 1999, Michael Stewart wrote: > >I use memset(buffer, 0, 640*480) but it's quite slow. > > This will be the fastest method > memset (buffer, 0, 307200); I think both will run with the same speed, since GCC computes the result of 640*480 at compile time.