From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 18 Jan 2021 08:01:29 -0500 Subject: [PATCH v2] string: Use memcpy() within memmove() when we can In-Reply-To: <20201211145635.v2.1.I56a5b1310adc1bce11401f8f2e1577be96dee65a@changeid> References: <20201211145635.v2.1.I56a5b1310adc1bce11401f8f2e1577be96dee65a@changeid> Message-ID: <20210118130129.GW9782@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Dec 11, 2020 at 02:59:23PM +0100, Patrick Delaunay wrote: > A common use of memmove() can be handled by memcpy(). Also memcpy() > includes an optimization for large sizes: it copies a word at a time. So > we can get a speed-up by calling memcpy() to handle our move in this case. > > Update memmove() to call also memcpy() if the source don't overlap > the destination (src + count <= dest). > > Signed-off-by: Patrick Delaunay Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: