[libc-commits] [PATCH] D106511: [libc] Optimize and standardize the C string functions

Alf via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue Jul 27 08:59:55 PDT 2021


gAlfonso-bit updated this revision to Diff 362054.
gAlfonso-bit added a comment.

static_cast can be done between void pointers and literal type pointers. reinterpret_cast is not needed


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106511/new/

https://reviews.llvm.org/D106511

Files:
  libc/src/string/aarch64/memcmp.cpp
  libc/src/string/aarch64/memcpy.cpp
  libc/src/string/bzero.cpp
  libc/src/string/memchr.cpp
  libc/src/string/memcmp.cpp
  libc/src/string/memcpy.cpp
  libc/src/string/memmove.cpp
  libc/src/string/memory_utils/elements.h
  libc/src/string/memrchr.cpp
  libc/src/string/memset.cpp
  libc/src/string/strchr.cpp
  libc/src/string/strcpy.cpp
  libc/src/string/string_utils.h
  libc/src/string/strrchr.cpp
  libc/src/string/strstr.cpp
  libc/src/string/x86_64/memcpy.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106511.362054.patch
Type: text/x-patch
Size: 11767 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20210727/d74b7742/attachment-0001.bin>


More information about the libc-commits mailing list