[libc-commits] [libc] [libc] Only declare float128 math functions in the generated math.h if float128 type is supported. (PR #81010)

via libc-commits libc-commits at lists.llvm.org
Wed Feb 7 12:07:12 PST 2024


================
@@ -11,6 +11,26 @@
 
 #include <__llvm-libc-common.h>
 #include <llvm-libc-macros/math-macros.h>
+#include <llvm-libc-types/float128.h>
+
+#ifdef LIBC_COMPILER_HAS_FLOAT128
+// Only declare float128 functions if float128 is supported.
+
+__BEGIN_C_DECLS
+
+float128 copysignf128(float128) __NOEXCEPT;
----------------
lntue wrote:

I updated the patch to add guards on generated public api instead.

https://github.com/llvm/llvm-project/pull/81010


More information about the libc-commits mailing list