[libc][NFC] Split memcmp implementations per platform
authorGuillaume Chatelet <gchatelet@google.com>
Thu, 13 Jul 2023 11:38:21 +0000 (11:38 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Mon, 17 Jul 2023 11:35:31 +0000 (11:35 +0000)
commitb38dda74fa6387a00c840f6bdbdeba0a7bda7e61
tree5f05daa5f842a26901d21909eeac7e4ccce875aa
parent6f4f1023fafec4a470d8b7e8ea884c1953fe5291
[libc][NFC] Split memcmp implementations per platform

This is a follow up on D154800 and D154770 to make the code structure more principled and avoid too many nested #ifdef/#endif.

Reviewed By: courbet

Differential Revision: https://reviews.llvm.org/D155181
libc/src/string/memory_utils/CMakeLists.txt
libc/src/string/memory_utils/memcmp_implementations.h
libc/src/string/memory_utils/riscv/memcmp_implementations.h [new file with mode: 0644]
utils/bazel/llvm-project-overlay/libc/BUILD.bazel