Change x != x and x == x into isnan calls (due to failures on clang)