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

Function compsignal

include/half.hpp:679–685  ·  view source on GitHub ↗

Check and signal for any NaN. \param x first half-precision value to check \param y second half-precision value to check \retval true if either \a x or \a y is NaN \retval false else \exception FE_INVALID if \a x or \a y is NaN

Source from the content-addressed store, hash-verified

677 /// \retval false else
678 /// \exception FE_INVALID if \a x or \a y is NaN
679 inline HALF_CONSTEXPR_NOERR bool compsignal(unsigned int x, unsigned int y)
680 {
681 #if HALF_ERRHANDLING
682 raise(FE_INVALID, (x&0x7FFF)>0x7C00 || (y&0x7FFF)>0x7C00);
683 #endif
684 return (x&0x7FFF) > 0x7C00 || (y&0x7FFF) > 0x7C00;
685 }
686
687 /// Signal and silence signaling NaN.
688 /// \param nan half-precision NaN value

Callers 6

operator==Function · 0.85
operator!=Function · 0.85
operator<Function · 0.85
operator>Function · 0.85
operator<=Function · 0.85
operator>=Function · 0.85

Calls 1

raiseFunction · 0.85

Tested by

no test coverage detected