forked from OSchip/llvm-project
[libc] ifdef guard element architecture implementations
This commit is contained in:
parent
6d276595d1
commit
f256c39541
|
@ -9,6 +9,8 @@
|
||||||
#ifndef LLVM_LIBC_SRC_STRING_MEMORY_UTILS_ELEMENTS_AARCH64_H
|
#ifndef LLVM_LIBC_SRC_STRING_MEMORY_UTILS_ELEMENTS_AARCH64_H
|
||||||
#define 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 <src/string/memory_utils/elements.h>
|
||||||
#include <stddef.h> // size_t
|
#include <stddef.h> // size_t
|
||||||
#include <stdint.h> // uint8_t, uint16_t, uint32_t, uint64_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 aarch64
|
||||||
} // namespace __llvm_libc
|
} // namespace __llvm_libc
|
||||||
|
|
||||||
|
#endif // defined(__arm__) || defined(__aarch64__)
|
||||||
|
|
||||||
#endif // LLVM_LIBC_SRC_STRING_MEMORY_UTILS_ELEMENTS_AARCH64_H
|
#endif // LLVM_LIBC_SRC_STRING_MEMORY_UTILS_ELEMENTS_AARCH64_H
|
||||||
|
|
|
@ -9,6 +9,9 @@
|
||||||
#ifndef LLVM_LIBC_SRC_STRING_MEMORY_UTILS_ELEMENTS_X86_H
|
#ifndef LLVM_LIBC_SRC_STRING_MEMORY_UTILS_ELEMENTS_X86_H
|
||||||
#define 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 <stddef.h> // size_t
|
||||||
#include <stdint.h> // uint8_t, uint16_t, uint32_t, uint64_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 x86
|
||||||
} // namespace __llvm_libc
|
} // 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
|
#endif // LLVM_LIBC_SRC_STRING_MEMORY_UTILS_ELEMENTS_X86_H
|
||||||
|
|
Loading…
Reference in New Issue