[libclc] [libclc] Fix fmod returning NaN for subnormal inputs (PR #225351)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 15 19:18:09 PST 2026
================
@@ -27,6 +27,7 @@ _CLC_DEFINE_ISFPCLASS(int, long, __clc_isnan, fcNan, double)
// The scalar version of __clc_isnan(half) returns an int, but the vector
// versions return a short.
-_CLC_DEFINE_ISFPCLASS(int, short, __clc_isnan, fcNan, half)
+_CLC_DEFINE_RELATIONAL_UNARY(int, short, __clc_isnan, (x != x), half)
#endif
+
----------------
Lurie97 wrote:
Thanks @wenju-he,
I've removed the unnecessary blank lines. Please let me know if there's anything else that should be changed.
https://github.com/llvm/llvm-project/pull/225351
More information about the cfe-commits
mailing list