Mail Archives: djgpp/1996/12/23/14:07:49
Hi Daniel:
>
> In a program I'm currently writing I need to copy some biggish (64k)
> shunks of memory around. I'm using memcpy() at the moment but it's not
> quite fast enough. Is there some other function that any one can
> suggest? The memory has all been allocated with malloc() and I'm not
> copying between conventional memory or something like that. Any help
> appreciated.
>
Depends on the CPU, for 486 memcpy is very very fast (copies double
words even if the data isn't aligned), may be in a Pentium simple
instructions (not rep movXX) can be executed faster, but if the speed
of memcpy isn't enough for you think about buying a faster machine.
SET
--------------- 0 --------------------------------
Salvador Eduardo Tropea (SET).
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013
- Raw text -