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

Function isgreaterequal

include/half.hpp:4397–4400  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

4395 /// \retval true if \a x greater equal \a y
4396 /// \retval false else
4397 inline HALF_CONSTEXPR bool isgreaterequal(half x, half y)
4398 {
4399 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);
4400 }
4401
4402 /// Quiet comparison for less than.
4403 /// **See also:** Documentation for [std::isless](https://en.cppreference.com/w/cpp/numeric/math/isless).

Callers

nothing calls this directly

Calls 1

isnanFunction · 0.85

Tested by

no test coverage detected