www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/26/15:54:26

Date: Wed, 26 Nov 1997 12:53:15 -0800 (PST)
Message-Id: <199711262053.MAA16566@adit.ap.net>
Mime-Version: 1.0
To: qball1723 AT aol DOT com (QBall1723), djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: DJGPP too slow!

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



- Raw text -


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