This is a discussion on Re: 0.9.8: cfb_enc.c bug? and AES speed on Win64/x64 - Openssl ; David C. Partridge writes: > If you want to copy from one mem location to another even if they overlap > *and* preserve the contents, then you should use memmove and pay the > overhead of the temporary buffer it ...
David C. Partridge writes:
> If you want to copy from one mem location to another even if they overlap
> *and* preserve the contents, then you should use memmove and pay the
> overhead of the temporary buffer it probably allocates.
Just a note: memmove doesn't need any temporary storage. It just has to
decide if it's going to copy the bytes front-to-back or back-to-front
depending on the relative position of the to pointers.
Cheers,
Richard
-----
Please consider sponsoring my work on free software.
See http://www.free.lp.se/sponsoring.html for details.
--
Richard Levitte richard@levitte.org
http://richard.levitte.org/
"When I became a man I put away childish things, including
the fear of childishness and the desire to be very grown up."
-- C.S. Lewis
__________________________________________________ ____________________
OpenSSL Project http://www.openssl.org
Development Mailing List openssl-dev@openssl.org
Automated List Manager majordomo@openssl.org