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

Function isinf

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

Check for infinity. See also:** Documentation for [std::isinf](https://en.cppreference.com/w/cpp/numeric/math/isinf). \param arg number to check \retval true for positive or negative infinity \retval false else

Source from the content-addressed store, hash-verified

4350 /// \retval true for positive or negative infinity
4351 /// \retval false else
4352 inline HALF_CONSTEXPR bool isinf(half arg) { return (arg.data_&0x7FFF) == 0x7C00; }
4353
4354 /// Check for NaN.
4355 /// **See also:** Documentation for [std::isnan](https://en.cppreference.com/w/cpp/numeric/math/isnan).

Callers 1

builtin_isinfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected