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

Function isless

include/half.hpp:4408–4411  ·  view source on GitHub ↗

Quiet comparison for less than. See also:** Documentation for [std::isless](https://en.cppreference.com/w/cpp/numeric/math/isless). \param x first operand \param y second operand \retval true if \a x less than \a y \retval false else

Source from the content-addressed store, hash-verified

4406 /// \retval true if \a x less than \a y
4407 /// \retval false else
4408 inline HALF_CONSTEXPR bool isless(half x, half y)
4409 {
4410 return ((x.data_^(0x8000|(0x8000-(x.data_>>15))))+(x.data_>>15)) < ((y.data_^(0x8000|(0x8000-(y.data_>>15))))+(y.data_>>15)) && !isnan(x) && !isnan(y);
4411 }
4412
4413 /// Quiet comparison for less equal.
4414 /// **See also:** Documentation for [std::islessequal](https://en.cppreference.com/w/cpp/numeric/math/islessequal).

Callers

nothing calls this directly

Calls 1

isnanFunction · 0.85

Tested by

no test coverage detected