[libc] Add utils for memory functions
authorGuillaume Chatelet <gchatelet@google.com>
Mon, 27 Jan 2020 14:42:20 +0000 (15:42 +0100)
committerGuillaume Chatelet <gchatelet@google.com>
Fri, 31 Jan 2020 09:15:02 +0000 (10:15 +0100)
commit85314e9b7a785e19aa63e17d96436ab35137f995
tree01a77b8089161cb806e4df81ee6d2bfa36268736
parent16a0313ee328f093682d5924eef6313cd4a8fcbe
[libc] Add utils for memory functions

Summary: This patch adds a few low level functions needed to build libc memory functions.

Reviewers: sivachandra, jfb

Subscribers: mgorny, MaskRay, tschuett, libc-commits, ckennelly

Tags: #libc-project

Differential Revision: https://reviews.llvm.org/D73472
12 files changed:
libc/src/string/CMakeLists.txt
libc/src/string/memory_utils/CMakeLists.txt [new file with mode: 0644]
libc/src/string/memory_utils/cacheline_size.h.def [new file with mode: 0644]
libc/src/string/memory_utils/cacheline_size_aarch64.h.inc [new file with mode: 0644]
libc/src/string/memory_utils/cacheline_size_arm.h.inc [new file with mode: 0644]
libc/src/string/memory_utils/cacheline_size_ppc64.h.inc [new file with mode: 0644]
libc/src/string/memory_utils/cacheline_size_x86.h.inc [new file with mode: 0644]
libc/src/string/memory_utils/cacheline_size_x86_64.h.inc [new file with mode: 0644]
libc/src/string/memory_utils/utils.h [new file with mode: 0644]
libc/test/src/string/CMakeLists.txt
libc/test/src/string/memory_utils/CMakeLists.txt [new file with mode: 0644]
libc/test/src/string/memory_utils/utils_test.cpp [new file with mode: 0644]