[libc-commits] [PATCH] D118389: [libc] Guard sqrt_80_bit_long_double.h header to not be included with aarch64.
Tue Ly via Phabricator via libc-commits
libc-commits at lists.llvm.org
Thu Jan 27 10:04:02 PST 2022
lntue updated this revision to Diff 403715.
lntue added a comment.
Move the include out of the namespaces.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118389/new/
https://reviews.llvm.org/D118389
Files:
libc/src/__support/FPUtil/generic/sqrt.h
Index: libc/src/__support/FPUtil/generic/sqrt.h
===================================================================
--- libc/src/__support/FPUtil/generic/sqrt.h
+++ libc/src/__support/FPUtil/generic/sqrt.h
@@ -9,12 +9,15 @@
#ifndef LLVM_LIBC_SRC_SUPPORT_FPUTIL_GENERIC_SQRT_H
#define LLVM_LIBC_SRC_SUPPORT_FPUTIL_GENERIC_SQRT_H
-#include "sqrt_80_bit_long_double.h"
#include "src/__support/CPP/TypeTraits.h"
#include "src/__support/FPUtil/FEnvImpl.h"
#include "src/__support/FPUtil/FPBits.h"
#include "src/__support/FPUtil/PlatformDefs.h"
+#if defined(SPECIAL_X86_LONG_DOUBLE)
+#include "sqrt_80_bit_long_double.h"
+#endif // SPECIAL_X86_LONG_DOUBLE
+
namespace __llvm_libc {
namespace fputil {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118389.403715.patch
Type: text/x-patch
Size: 709 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220127/ae3768b4/attachment.bin>
More information about the libc-commits
mailing list