[libc] ifdef guard element architecture implementations

This commit is contained in:
Guillaume Chatelet 2021-10-08 14:25:08 +00:00
parent 6d276595d1
commit f256c39541
2 changed files with 10 additions and 0 deletions

View File

@ -9,6 +9,8 @@
#ifndef LLVM_LIBC_SRC_STRING_MEMORY_UTILS_ELEMENTS_AARCH64_H
#define LLVM_LIBC_SRC_STRING_MEMORY_UTILS_ELEMENTS_AARCH64_H
#if defined(__arm__) || defined(__aarch64__)
#include <src/string/memory_utils/elements.h>
#include <stddef.h> // size_t
#include <stdint.h> // uint8_t, uint16_t, uint32_t, uint64_t
@ -113,4 +115,6 @@ using _32 = __llvm_libc::scalar::_32;
} // namespace aarch64
} // namespace __llvm_libc
#endif // defined(__arm__) || defined(__aarch64__)
#endif // LLVM_LIBC_SRC_STRING_MEMORY_UTILS_ELEMENTS_AARCH64_H

View File

@ -9,6 +9,9 @@
#ifndef LLVM_LIBC_SRC_STRING_MEMORY_UTILS_ELEMENTS_X86_H
#define LLVM_LIBC_SRC_STRING_MEMORY_UTILS_ELEMENTS_X86_H
#if defined(__i386__) || defined(_M_IX86) || defined(__x86_64__) || \
defined(_M_X64)
#include <stddef.h> // size_t
#include <stdint.h> // uint8_t, uint16_t, uint32_t, uint64_t
@ -163,4 +166,7 @@ using _128 = __llvm_libc::Repeated<_8, 16>;
} // namespace x86
} // namespace __llvm_libc
#endif // defined(__i386__) || defined(_M_IX86) || defined(__x86_64__) ||
// defined(_M_X64)
#endif // LLVM_LIBC_SRC_STRING_MEMORY_UTILS_ELEMENTS_X86_H