delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/09/13:25:55.1

From: "Michael Stewart" <mike AT reggin DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: HELP!! need fast initialisation-function for virtual-buffer!
Date: Tue, 9 Mar 1999 18:07:59 -0000
Organization: Customer of Planet Online
Lines: 21
Message-ID: <7c3p0u$fll$1@news5.svr.pol.co.uk>
References: <01be6a45$db03ce60$9fab9bc1 AT default>
NNTP-Posting-Host: modem-33.zyprexa.dialup.pol.co.uk
X-Trace: news5.svr.pol.co.uk 921003870 16053 62.136.95.161 (9 Mar 1999 18:24:30 GMT)
NNTP-Posting-Date: 9 Mar 1999 18:24:30 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Spike wrote in message <01be6a45$db03ce60$9fab9bc1 AT default>...
>Hi!
>
>I use a virtual-buffer and I need to set it to zero very often. So I need a
>function that sets this buffer to zero for 640*480 times. (It is 640*480
>bytes large [my screen]).
>
>I use memset(buffer, 0, 640*480) but it's quite slow.


This will be the fastest method
memset (buffer, 0, 307200);


--
Michael Stewart
mike AT reggin DOT freeserve DOT co DOT uk
"Just because you're paraniod doesn't mean they aren't after you..."



- Raw text -


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