[PATCH] lib/decompress_unxz.c: removing all memory helper functions

From
H. Peter Anvin <hpa@zytor.com>
Date
2012-05-25 17:15:09
Also in
linux-sh, lkml
Reply to
Thavatchai Makphaibulcboke, 2012-05-25
On 05/25/2012 10:05 AM, Thavatchai Makphaibulcboke wrote:
quoted
We could do that.  But according to the comment in the original
implementation, there seems to be a concern regarding its performance
speed. If you believe all archs' memcpy would give comparable
performance to the memmove. then I could do that.
Also how about the case for overlapping buffer, especially when the
destination is at a higher address?  I do not believe memcpy guarantee
to work.
memcpy() is not guaranteed to work for any overlap; that is what
memmove() is for.

	-hpa

-- 
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.
Thread (19 messages) 19 messages, 6 authors, last reply 2012-06-01
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help