Date: Wed, 26 Nov 1997 12:53:15 -0800 (PST) Message-Id: <199711262053.MAA16566@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: qball1723 AT aol DOT com (QBall1723), djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: DJGPP too slow! Precedence: bulk At 12:22 11/25/1997 GMT, QBall1723 wrote: >Here are a couple of macros I found at a DJGPP assembly FAQ somewheres.... I've >posted them elsewhere... as part of a reply to someone else's question... > > ...perhaps it's psychological... but I believe these will clear (set) and >copy memory faster than the library function move_data... or dosmemput (I >believe dosmemput only uses bytes... but I'm not certain of this...) (Btw, the function is called `movedata', no underline) They probably will go faster than `movedata', but only slightly. Basically you just avoid the overhead of the function call and the check for excess bytes. `dosmemput' just calls `movedata' with selectors of `_dos_ds' and `_my_ds()', so it uses mostly longwords, same as `movedata'. If you want to use the macros, you might consider making them inline functions instead. IMHO, it's cleaner. Nate Eldredge eldredge AT ap DOT net