File tree Expand file tree Collapse file tree 3 files changed +5
-88
lines changed
libc/src/__support/FPUtil Expand file tree Collapse file tree 3 files changed +5
-88
lines changed Original file line number Diff line number Diff line change 10
10
#define LLVM_LIBC_SRC___SUPPORT_FPUTIL_SQRT_H
11
11
12
12
#include " src/__support/macros/properties/architectures.h"
13
+ #include " src/__support/macros/properties/cpu_features.h"
13
14
14
- #if defined(LIBC_TARGET_ARCH_IS_X86_64)
15
+ #if defined(LIBC_TARGET_ARCH_IS_X86_64) && defined(LIBC_TARGET_CPU_HAS_SSE2)
15
16
#include " x86_64/sqrt.h"
16
17
#elif defined(LIBC_TARGET_ARCH_IS_AARCH64)
17
18
#include " aarch64/sqrt.h"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11
11
12
12
#include " src/__support/common.h"
13
13
#include " src/__support/macros/properties/architectures.h"
14
+ #include " src/__support/macros/properties/cpu_features.h"
14
15
15
- #if !defined(LIBC_TARGET_ARCH_IS_X86 )
16
- #error "Invalid include "
16
+ #if !( defined(LIBC_TARGET_ARCH_IS_X86_64) && defined(LIBC_TARGET_CPU_HAS_SSE2) )
17
+ #error "sqrtss / sqrtsd need SSE2 "
17
18
#endif
18
19
19
20
#include " src/__support/FPUtil/generic/sqrt.h"
You can’t perform that action at this time.
0 commit comments