[libc-commits] [PATCH] D109316: [libc] Some clean work with memmove.
Cheng Wang via Phabricator via libc-commits
libc-commits at lists.llvm.org
Mon Sep 6 04:32:11 PDT 2021
cheng.w created this revision.
cheng.w added a reviewer: gchatelet.
Herald added subscribers: libc-commits, ecnelises, tschuett, mgorny.
Herald added a project: libc-project.
cheng.w requested review of this revision.
- 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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D109316
Files:
libc/src/string/CMakeLists.txt
libc/src/string/memmove.cpp
libc/test/src/string/memmove_test.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109316.370891.patch
Type: text/x-patch
Size: 8567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20210906/43a1fe98/attachment.bin>
More information about the libc-commits
mailing list