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

Function isnan

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

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

Source from the content-addressed store, hash-verified

4357 /// \retval true for NaNs
4358 /// \retval false else
4359 inline HALF_CONSTEXPR bool isnan(half arg) { return (arg.data_&0x7FFF) > 0x7C00; }
4360
4361 /// Check if normal number.
4362 /// **See also:** Documentation for [std::isnormal](https://en.cppreference.com/w/cpp/numeric/math/isnormal).

Callers 10

builtin_isnanFunction · 0.85
fmaxFunction · 0.85
fminFunction · 0.85
fdimFunction · 0.85
isgreaterFunction · 0.85
isgreaterequalFunction · 0.85
islessFunction · 0.85
islessequalFunction · 0.85
islessgreaterFunction · 0.85
isunorderedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected