[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 09:16:24 PST 2022


lntue created this revision.
lntue added a reviewer: sivachandra.
Herald added subscribers: ecnelises, tschuett, kristof.beyls.
Herald added a project: libc-project.
lntue requested review of this revision.

Guard sqrt_80_bit_long_double.h header to not be included with aarch64.


Repository:
  rG LLVM Github Monorepo

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,7 +9,6 @@
 #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"
@@ -21,6 +20,8 @@
 namespace internal {
 
 #if defined(SPECIAL_X86_LONG_DOUBLE)
+#include "sqrt_80_bit_long_double.h"
+
 struct SpecialLongDouble {
   static constexpr bool VALUE = true;
 };


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118389.403695.patch
Type: text/x-patch
Size: 688 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220127/bfb32447/attachment.bin>


More information about the libc-commits mailing list