delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/24/06:18:33

Date: Mon, 24 Nov 1997 13:18:26 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Speed <speed AT linux DOT dpilink DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: 32bit memcpy function?
In-Reply-To: <34791FD2.DC541BF1@linux.dpilink.com>
Message-ID: <Pine.SUN.3.91.971124131357.23713L-100000@is>
MIME-Version: 1.0

On Sun, 23 Nov 1997, Speed wrote:

> So it is equivalent to a 'rep movsl'? (assuming, of course, the source,
> dest, and count are already set)

It's not equivalent, that's *exactly* what it does (except that if the 
count is not an integer multiple of 4, it moves the rest with movesb).

You might consider downloading the DJGPP library sources 
(v2/djlsr201.zip) so you could look there by yourself whenever such 
questions arise.

In addition, if the size is known at compile time, gcc will generate an 
inline loop instead of calling the library function, this saving the 
overhead of the call.

- Raw text -


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