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 1010#define LLVM_LIBC_SRC___SUPPORT_FPUTIL_SQRT_H
1111
1212#include " src/__support/macros/properties/architectures.h"
13+ #include " src/__support/macros/properties/cpu_features.h"
1314
14- #if defined(LIBC_TARGET_ARCH_IS_X86_64)
15+ #if defined(LIBC_TARGET_ARCH_IS_X86_64) && defined(LIBC_TARGET_CPU_HAS_SSE2)
1516#include " x86_64/sqrt.h"
1617#elif defined(LIBC_TARGET_ARCH_IS_AARCH64)
1718#include " aarch64/sqrt.h"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1111
1212#include " src/__support/common.h"
1313#include " src/__support/macros/properties/architectures.h"
14+ #include " src/__support/macros/properties/cpu_features.h"
1415
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 "
1718#endif
1819
1920#include " src/__support/FPUtil/generic/sqrt.h"
You can’t perform that action at this time.
0 commit comments