[libc-commits] [PATCH] D114236: [libc] Fix 64-bit ARM support and header includes

Louis Dionne via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Nov 19 05:19:17 PST 2021


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

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D114236

Files:
  libc/src/__support/FPUtil/PlatformDefs.h
  libc/test/src/math/exhaustive/cosf_test.cpp
  libc/test/src/math/exhaustive/expm1f_test.cpp
  libc/test/src/math/exhaustive/sinf_test.cpp
  libc/test/src/math/exhaustive/sqrtf_test.cpp


Index: libc/test/src/math/exhaustive/sqrtf_test.cpp
===================================================================
--- libc/test/src/math/exhaustive/sqrtf_test.cpp
+++ libc/test/src/math/exhaustive/sqrtf_test.cpp
@@ -7,9 +7,9 @@
 //===---------------------------------------------------------------------===//
 
 #include "src/__support/FPUtil/FPBits.h"
-#include "src/__support/FPUtil/TestHelpers.h"
 #include "src/math/sqrtf.h"
 #include "utils/MPFRWrapper/MPFRUtils.h"
+#include "utils/UnitTest/FPMatcher.h"
 #include <math.h>
 
 using FPBits = __llvm_libc::fputil::FPBits<float>;
Index: libc/test/src/math/exhaustive/sinf_test.cpp
===================================================================
--- libc/test/src/math/exhaustive/sinf_test.cpp
+++ libc/test/src/math/exhaustive/sinf_test.cpp
@@ -7,9 +7,9 @@
 //===----------------------------------------------------------------------===//
 
 #include "src/__support/FPUtil/FPBits.h"
-#include "src/__support/FPUtil/TestHelpers.h"
 #include "src/math/sinf.h"
 #include "utils/MPFRWrapper/MPFRUtils.h"
+#include "utils/UnitTest/FPMatcher.h"
 #include <math.h>
 
 using FPBits = __llvm_libc::fputil::FPBits<float>;
Index: libc/test/src/math/exhaustive/expm1f_test.cpp
===================================================================
--- libc/test/src/math/exhaustive/expm1f_test.cpp
+++ libc/test/src/math/exhaustive/expm1f_test.cpp
@@ -7,9 +7,9 @@
 //===----------------------------------------------------------------------===//
 
 #include "src/__support/FPUtil/FPBits.h"
-#include "src/__support/FPUtil/TestHelpers.h"
 #include "src/math/expm1f.h"
 #include "utils/MPFRWrapper/MPFRUtils.h"
+#include "utils/UnitTest/FPMatcher.h"
 #include <math.h>
 
 using FPBits = __llvm_libc::fputil::FPBits<float>;
Index: libc/test/src/math/exhaustive/cosf_test.cpp
===================================================================
--- libc/test/src/math/exhaustive/cosf_test.cpp
+++ libc/test/src/math/exhaustive/cosf_test.cpp
@@ -7,9 +7,9 @@
 //===----------------------------------------------------------------------===//
 
 #include "src/__support/FPUtil/FPBits.h"
-#include "src/__support/FPUtil/TestHelpers.h"
 #include "src/math/cosf.h"
 #include "utils/MPFRWrapper/MPFRUtils.h"
+#include "utils/UnitTest/FPMatcher.h"
 #include <math.h>
 
 using FPBits = __llvm_libc::fputil::FPBits<float>;
Index: libc/src/__support/FPUtil/PlatformDefs.h
===================================================================
--- libc/src/__support/FPUtil/PlatformDefs.h
+++ libc/src/__support/FPUtil/PlatformDefs.h
@@ -15,7 +15,7 @@
 #define X87_FPU
 #endif
 
-#if defined(_WIN32)
+#if defined(_WIN32) || defined(__arch64__)
 #define LONG_DOUBLE_IS_DOUBLE
 #endif
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114236.388474.patch
Type: text/x-patch
Size: 2712 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20211119/ded2af94/attachment.bin>


More information about the libc-commits mailing list