OSDN Git Service

[libc] Align src buffer instead of dst buffer
authorGuillaume Chatelet <gchatelet@google.com>
Wed, 6 Jan 2021 12:04:53 +0000 (12:04 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Wed, 6 Jan 2021 12:04:53 +0000 (12:04 +0000)
commitaa9db51ef69f36775e9babd2f4b23142967784ee
tree4f0ab3254e70cb9643133e0f934bca525f88a914
parent223a6f94c59c00733763bacc43f5b9458b4cc6f4
[libc] Align src buffer instead of dst buffer

We used to align destination buffer instead of source buffer for the loop of block copy.
This is a mistake.

Differential Revision: https://reviews.llvm.org/D93457
libc/src/string/memory_utils/memcpy_utils.h
libc/test/src/string/memory_utils/memcpy_utils_test.cpp