[libc-commits] [libc] [llvm] [libc][math] Implement isnanbf16 function (PR #238777)
via libc-commits
libc-commits at lists.llvm.org
Tue Nov 24 21:45:59 PST 2026
================
@@ -735,6 +735,9 @@ static_assert(bfloat16(0.0) ==
bfloat16(0.0)));
static_assert(bfloat16(0.0) == LIBC_NAMESPACE::shared::rintbf16(bfloat16(0.0)));
static_assert(1 == LIBC_NAMESPACE::shared::iscanonicalbf16(bfloat16(0.0)));
+#if defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 10)
----------------
lntue wrote:
Drop this `#if`-`#endif`, only keep your new `static_assert`. The whole file is already guarded.
https://github.com/llvm/llvm-project/pull/238777
More information about the libc-commits
mailing list