OSDN Git Service

[libc] Add memset and bzero implementations
authorGuillaume Chatelet <gchatelet@google.com>
Fri, 15 May 2020 14:27:35 +0000 (14:27 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Wed, 20 May 2020 06:35:13 +0000 (06:35 +0000)
commit6ca54e01146d91ca3ae3d72bf1cd988fca704630
tree5f8241642b8b6e4b57935ad3ae724d8f1cdc7f7e
parente71c537a487cacaa00265e1acb765235943d5172
[libc] Add memset and bzero implementations

Summary: This patch adds general purpose `memset` and `bzero` implementations.

Reviewers: sivachandra, abrachet

Subscribers: mgorny, tschuett, ecnelises, libc-commits, courbet

Tags: #libc-project

Differential Revision: https://reviews.llvm.org/D80010
14 files changed:
libc/lib/CMakeLists.txt
libc/src/string/CMakeLists.txt
libc/src/string/bzero.cpp [new file with mode: 0644]
libc/src/string/bzero.h [new file with mode: 0644]
libc/src/string/memory_utils/CMakeLists.txt
libc/src/string/memory_utils/memcpy_utils.h
libc/src/string/memory_utils/memset_utils.h [new file with mode: 0644]
libc/src/string/memset.cpp [new file with mode: 0644]
libc/src/string/memset.h [new file with mode: 0644]
libc/src/string/x86/CMakeLists.txt
libc/test/src/string/CMakeLists.txt
libc/test/src/string/bzero_test.cpp [new file with mode: 0644]
libc/test/src/string/memcpy_test.cpp
libc/test/src/string/memset_test.cpp [new file with mode: 0644]