delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/13/00:00:46

From: Endlisnis <s257m AT unb DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Inline asm
Date: Wed, 12 Aug 1998 23:47:54 -0300
Organization: NBTel Internet
Lines: 20
Message-ID: <35D253DA.B04B8D98@unb.ca>
References: <199808010337 DOT EAA08924 AT sable DOT ox DOT ac DOT uk> <35C29036 DOT ADF11F19 AT access DOT net DOT au>
NNTP-Posting-Host: fctnts10c24.nbnet.nb.ca
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Donald McComb wrote:

> Ahhh... But I thought memcopy copied the memory in byte sized chunks,
> rather than longs, and thus wouldn't be quite as fast as it could be.  I
> hope you're right... that solution is far more appealling than inline
> asm :)

    No, memcpy (no 'o') copy's 4-byte chunks (but also works with blocks not
divisible by 4).  There is a function memmove that copies 1 byte at a time
in case the regions overlap, but it is (essentially) 4 times slower.

--
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT GeoCities DOT com
          Endlis AT nbnet DOT nb DOT ca




- Raw text -


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