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

Function check_underflow

include/half.hpp:767–773  ·  view source on GitHub ↗

Check value for underflow. \param arg non-zero half-precision value to check \return \a arg \exception FE_UNDERFLOW if arg is subnormal

Source from the content-addressed store, hash-verified

765 /// \return \a arg
766 /// \exception FE_UNDERFLOW if arg is subnormal
767 inline HALF_CONSTEXPR_NOERR unsigned int check_underflow(unsigned int arg)
768 {
769 #if HALF_ERRHANDLING && !HALF_ERRHANDLING_UNDERFLOW_TO_INEXACT
770 raise(FE_UNDERFLOW, !(arg&0x7C00));
771 #endif
772 return arg;
773 }
774
775 /// \}
776 /// \name Conversion and rounding

Callers 2

hypotFunction · 0.85
powFunction · 0.85

Calls 1

raiseFunction · 0.85

Tested by

no test coverage detected