[libc-commits] [PATCH] D106395: [libc] Include nextafter's functions to Windows's entrypoints

Hedin GarcĂ­a via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Jul 21 06:28:44 PDT 2021


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGefa211526689: [libc] Include nextafter's functions to Windows's entrypoints (authored by hedingarcia).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106395/new/

https://reviews.llvm.org/D106395

Files:
  libc/config/windows/entrypoints.txt
  libc/test/src/math/NextAfterTest.h


Index: libc/test/src/math/NextAfterTest.h
===================================================================
--- libc/test/src/math/NextAfterTest.h
+++ libc/test/src/math/NextAfterTest.h
@@ -22,12 +22,8 @@
   using MantissaWidth = __llvm_libc::fputil::MantissaWidth<T>;
   using UIntType = typename FPBits::UIntType;
 
-#if (defined(__x86_64__) || defined(__i386__))
   static constexpr int bitWidthOfType =
-      __llvm_libc::cpp::IsSame<T, long double>::Value ? 80 : (sizeof(T) * 8);
-#else
-  static constexpr int bitWidthOfType = sizeof(T) * 8;
-#endif
+      __llvm_libc::fputil::FloatProperties<T>::bitWidth;
 
   const T zero = T(FPBits::zero());
   const T negZero = T(FPBits::negZero());
Index: libc/config/windows/entrypoints.txt
===================================================================
--- libc/config/windows/entrypoints.txt
+++ libc/config/windows/entrypoints.txt
@@ -66,6 +66,9 @@
     libc.src.math.modf
     libc.src.math.modff
     libc.src.math.modfl
+    libc.src.math.nextafter
+    libc.src.math.nextafterf
+    libc.src.math.nextafterl
 )
 
 set(TARGET_LLVMLIBC_ENTRYPOINTS


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106395.360419.patch
Type: text/x-patch
Size: 1109 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20210721/a530e040/attachment.bin>


More information about the libc-commits mailing list