[all-commits] [llvm/llvm-project] b659b7: [libc] Some clean work with memmove.
ChennngWang via All-commits
all-commits at lists.llvm.org
Fri Sep 10 01:53:00 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b659b789c03ac339e28d7b91406b67bb887a426d
https://github.com/llvm/llvm-project/commit/b659b789c03ac339e28d7b91406b67bb887a426d
Author: Cheng Wang <chennngwang at gmail.com>
Date: 2021-09-10 (Fri, 10 Sep 2021)
Changed paths:
M libc/src/string/CMakeLists.txt
M libc/src/string/memmove.cpp
M libc/test/src/string/memmove_test.cpp
Log Message:
-----------
[libc] Some clean work with memmove.
- Replace `move_byte_forward()` with `memcpy`. In `memcpy` implementation,
it copies bytes forward from beginning to end. Otherwise, `memmove` unit
tests will break.
- Make `memmove` unit tests work.
Reviewed By: gchatelet
Differential Revision: https://reviews.llvm.org/D109316
More information about the All-commits
mailing list