[libc-commits] [libc] [libc][math][C23] float16 emulation (PR #242947)
via libc-commits
libc-commits at lists.llvm.org
Mon Nov 16 01:47:55 PST 2026
================
@@ -17,12 +17,12 @@
!defined(__arm__) && !defined(_M_ARM) && !defined(__riscv) && \
!defined(_WIN32) && (!defined(__i386__) || defined(__SSE2__))
#define LIBC_TYPES_HAS_FLOAT16
+#endif
// TODO: This would no longer be required if HdrGen let us guard function
// declarations with multiple macros.
-#ifdef LIBC_TYPES_HAS_NATIVE_FLOAT128
+#if defined(LIBC_TYPES_HAS_FLOAT16) && defined(LIBC_TYPES_HAS_NATIVE_FLOAT128)
----------------
Sukumarsawant wrote:
can we add a small comment about these guards ?
https://github.com/llvm/llvm-project/pull/242947
More information about the libc-commits
mailing list