MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / builtin_isnan

Function builtin_isnan

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

Source from the content-addressed store, hash-verified

418 /// \retval true if not a number
419 /// \retval false else
420 template<typename T> bool builtin_isnan(T arg)
421 {
422 #if HALF_ENABLE_CPP11_CMATH
423 return std::isnan(arg);
424 #elif defined(_MSC_VER)
425 return ::_isnan(static_cast<double>(arg)) != 0;
426 #else
427 return arg != arg;
428 #endif
429 }
430
431 /// Check sign.
432 /// \tparam T argument type (builtin floating point type)

Callers 8

equal_values_relativeFunction · 0.85
float2half_implFunction · 0.85
remainderMethod · 0.85
remquoMethod · 0.85
cbrtMethod · 0.85
nexttowardMethod · 0.85
fminMethod · 0.85
fmaxMethod · 0.85

Calls 1

isnanFunction · 0.85

Tested by

no test coverage detected