MCPcopy Create free account
hub / github.com/apache/singa / islessgreater

Function islessgreater

include/half.hpp:4430–4433  ·  view source on GitHub ↗

Quiet comarison for less or greater. See also:** Documentation for [std::islessgreater](https://en.cppreference.com/w/cpp/numeric/math/islessgreater). \param x first operand \param y second operand \retval true if either less or greater \retval false else

Source from the content-addressed store, hash-verified

4428 /// \retval true if either less or greater
4429 /// \retval false else
4430 inline HALF_CONSTEXPR bool islessgreater(half x, half y)
4431 {
4432 return x.data_!=y.data_ && ((x.data_|y.data_)&0x7FFF) && !isnan(x) && !isnan(y);
4433 }
4434
4435 /// Quiet check if unordered.
4436 /// **See also:** Documentation for [std::isunordered](https://en.cppreference.com/w/cpp/numeric/math/isunordered).

Callers

nothing calls this directly

Calls 1

isnanFunction · 0.85

Tested by

no test coverage detected