MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / isless

Method isless

dnn/include/megdnn/dtype/half.hpp:1851–1852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1849 /// \retval true if \a x < \a y
1850 /// \retval false else
1851 MEGDNN_HOST MEGDNN_DEVICE static bool isless(half x, half y) { return !isnan(x) && !isnan(y) && ((signbit(x) ? (static_cast<int17>(0x8000)-x.data_) :
1852 static_cast<int17>(x.data_)) < (signbit(y) ? (static_cast<int17>(0x8000)-y.data_) : static_cast<int17>(y.data_))); }
1853
1854 /// Comparison implementation.
1855 /// \param x first operand

Callers

nothing calls this directly

Calls 2

isnanFunction · 0.70
signbitFunction · 0.70

Tested by

no test coverage detected