cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/24/13:47:49

From: Vik Heyndrickx <Vik DOT Heyndrickx AT rug DOT ac DOT be>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: 32bit memcpy function?
Date: Mon, 24 Nov 1997 09:47:56 +0100
Organization: University of Ghent, Belgium
Lines: 18
Message-ID: <34793F3C.298F@rug.ac.be>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 971123153118 DOT 19570a-100000 AT is> <34791FD2 DOT DC541BF1 AT linux DOT dpilink DOT com>
NNTP-Posting-Host: eduserv1.rug.ac.be
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Speed wrote:
> Eli Zaretskii wrote:
> > On Sat, 22 Nov 1997 wolfman AT cedar DOT alberni DOT net wrote:
> > > I was wondering if DJGPP has a 32bit memcpy function (memcpy uses
> > > 8bit right?)
> > Wrong.  `memcpy' in DJGPP uses 32-bit move instructions.

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

Even more. 'memcpy' is a compiler built-in function, hence additional
optimizations can be performed. So it is even possible it is faster than
'rep; movsl' on a particular machine!

-- 
 \ Vik /-_-_-_-_-_-_/   
  \___/ Heyndrickx /          
   \ /-_-_-_-_-_-_/

- Raw text -


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