MCPcopy Create free account
hub / github.com/apache/singa / operator>

Function operator>

include/half.hpp:2499–2503  ·  view source on GitHub ↗

Comparison for greater than. \param x first operand \param y second operand \retval true if \a x greater than \a y \retval false else \exception FE_INVALID if \a x or \a y is NaN

Source from the content-addressed store, hash-verified

2497 /// \retval false else
2498 /// \exception FE_INVALID if \a x or \a y is NaN
2499 inline HALF_CONSTEXPR_NOERR bool operator>(half x, half y)
2500 {
2501 return !detail::compsignal(x.data_, y.data_) &&
2502 ((x.data_^(0x8000|(0x8000-(x.data_>>15))))+(x.data_>>15)) > ((y.data_^(0x8000|(0x8000-(y.data_>>15))))+(y.data_>>15));
2503 }
2504
2505 /// Comparison for less equal.
2506 /// \param x first operand

Callers

nothing calls this directly

Calls 1

compsignalFunction · 0.85

Tested by

no test coverage detected