[libc-commits] [libc] 4a979c4 - [libc] Guard sqrt_80_bit_long_double.h header to not be included with aarch64.
Tue Ly via libc-commits
libc-commits at lists.llvm.org
Thu Jan 27 10:36:50 PST 2022
Author: Tue Ly
Date: 2022-01-27T13:36:39-05:00
New Revision: 4a979c42564e622fdf283ae8d0b7a59ebe567533
URL: https://github.com/llvm/llvm-project/commit/4a979c42564e622fdf283ae8d0b7a59ebe567533
DIFF: https://github.com/llvm/llvm-project/commit/4a979c42564e622fdf283ae8d0b7a59ebe567533.diff
LOG: [libc] Guard sqrt_80_bit_long_double.h header to not be included with aarch64.
Guard sqrt_80_bit_long_double.h header to not be included with aarch64.
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D118389
Added:
Modified:
libc/src/__support/FPUtil/generic/sqrt.h
Removed:
################################################################################
diff --git a/libc/src/__support/FPUtil/generic/sqrt.h b/libc/src/__support/FPUtil/generic/sqrt.h
index 92b18e297ae14..b92559807372d 100644
--- a/libc/src/__support/FPUtil/generic/sqrt.h
+++ b/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 {
More information about the libc-commits
mailing list