From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Wed, 10 May 2017 13:51:44 -0400 Subject: [U-Boot] [U-Boot, v6, 04/18] string: Use memcpy() within memmove() when we can In-Reply-To: <20170405222345.32288-5-sjg@chromium.org> References: <20170405222345.32288-5-sjg@chromium.org> Message-ID: <20170510175144.GM12511@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 Wed, Apr 05, 2017 at 04:23:31PM -0600, Simon Glass wrote: > A common use of memmove() can be handled by memcpy(). Also memcpy() > includes an optimisation 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 memcpy() if the destination is before the source. > > Signed-off-by: Simon Glass > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: