Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964888Ab2EYRGE (ORCPT ); Fri, 25 May 2012 13:06:04 -0400 Received: from g1t0027.austin.hp.com ([15.216.28.34]:32868 "EHLO g1t0027.austin.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933783Ab2EYRF6 (ORCPT ); Fri, 25 May 2012 13:05:58 -0400 Message-ID: <4FBFBBF3.3090204@hp.com> Date: Fri, 25 May 2012 11:05:55 -0600 From: Thavatchai Makphaibulcboke User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: Lasse Collin CC: "lethal@linux-sh.org" , "hpa@zytor.com" , "tglx@linutronix.de" , "mingo@redhat.com" , "x86@kernel.org" , "kaloz@openwrt.org" , "matt.fleming@intel.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-s390@vger.kernel.org" , "linux-sh@vger.kernel.org" , "linux@arm.linux.org.uk" , "schwidefsky@de.ibm.com" , "heiko.carstens@de.ibm.com" , "linux390@de.ibm.com" Subject: Re: [PATCH] lib/decompress_unxz.c: removing all memory helper functions References: <1337875436-27640-1-git-send-email-tmac@hp.com> <20120525113432.3beea6ed@tukaani.org> <4FBFB3F3.1000606@hp.com> In-Reply-To: <4FBFB3F3.1000606@hp.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 667 Lines: 19 > 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. Thanks, Mak. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/