MCPcopy Create free account
hub / github.com/OpenNMT/CTranslate2 / isunordered

Function isunordered

include/half_float/half.hpp:4467–4467  ·  view source on GitHub ↗

Quiet check if unordered. See also:** Documentation for [std::isunordered](https://en.cppreference.com/w/cpp/numeric/math/isunordered). \param x first operand \param y second operand \retval true if unordered (one or two NaN operands) \retval false else

Source from the content-addressed store, hash-verified

4465 /// \retval true if unordered (one or two NaN operands)
4466 /// \retval false else
4467 inline HALF_CONSTEXPR bool isunordered(half x, half y) { return isnan(x) || isnan(y); }
4468
4469 /// \}
4470 /// \anchor casting

Callers

nothing calls this directly

Calls 1

isnanFunction · 0.85

Tested by

no test coverage detected