[libc][mem*] Introduce Algorithms for new mem framework
authorGuillaume Chatelet <gchatelet@google.com>
Wed, 22 Jun 2022 11:34:51 +0000 (11:34 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Tue, 28 Jun 2022 09:23:49 +0000 (09:23 +0000)
commit7f5d7bc827a5fda1c803342af536f81986e2635a
tree9c4b8a8e8690f6a881e87407b41cc1a069b8645a
parent941c8e0ea50bb063689e926e67f81f73c015c94a
[libc][mem*] Introduce Algorithms for new mem framework

This patch is a subpart of D125768 intented to make the review easier.

This patch introduces the same algorithms as in `libc/src/string/memory_utils/elements.h` but using the new API.

Differential Revision: https://reviews.llvm.org/D128335
libc/src/string/memory_utils/algorithm.h [new file with mode: 0644]
libc/src/string/memory_utils/sized_op.h
libc/test/src/string/memory_utils/CMakeLists.txt
libc/test/src/string/memory_utils/algorithm_test.cpp [new file with mode: 0644]