From: Vik Heyndrickx 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: <34791FD2 DOT DC541BF1 AT linux DOT dpilink DOT com> NNTP-Posting-Host: eduserv1.rug.ac.be Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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 / \ /-_-_-_-_-_-_/