[all-commits] [llvm/llvm-project] 2423ec: [libc] Add memmove implementation.

ChennngWang via All-commits all-commits at lists.llvm.org
Thu Jan 14 20:13:44 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2423ec583761304f93b5d01493a26aeb11cb5b8f
      https://github.com/llvm/llvm-project/commit/2423ec583761304f93b5d01493a26aeb11cb5b8f
  Author: Cheng Wang <chennngwang at gmail.com>
  Date:   2021-01-15 (Fri, 15 Jan 2021)

  Changed paths:
    M libc/config/linux/aarch64/entrypoints.txt
    M libc/config/linux/x86_64/entrypoints.txt
    M libc/src/string/CMakeLists.txt
    A libc/src/string/memmove.cpp
    A libc/src/string/memmove.h
    M libc/test/src/string/CMakeLists.txt
    A libc/test/src/string/memmove_test.cpp

  Log Message:
  -----------
  [libc] Add memmove implementation.

Use `memcpy` rather than copying bytes one by one, for there might be large
size structs to move.

Reviewed By: gchatelet, sivachandra

Differential Revision: https://reviews.llvm.org/D93195




More information about the All-commits mailing list