3 ms·
If you want to check whether either of two values is NaN, rejoice, it is now optimized to a single instruction on x86 by GCC 6 and Clang 3.7: https://gcc.gnu.or
by jzwinck 9y ago
If you want to check whether either of two values is NaN, rejoice, it is now optimized to a single instruction on x86 by GCC 6 and Clang 3.7: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63387 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63387
You write isnan(x)||isnan(y) but the compilers now optimize the whole thing to one instruction.
If you want specific syntax you can use the builtin unordered(x, y).