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

Function builtin_isinf

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

Source from the content-addressed store, hash-verified

402 /// \retval true if infinity
403 /// \retval false else
404 template<typename T> bool builtin_isinf(T arg)
405 {
406 #if HALF_ENABLE_CPP11_CMATH
407 return std::isinf(arg);
408 #elif defined(_MSC_VER)
409 return !::_finite(static_cast<double>(arg)) && !::_isnan(static_cast<double>(arg));
410 #else
411 return arg == std::numeric_limits<T>::infinity() || arg == -std::numeric_limits<T>::infinity();
412 #endif
413 }
414
415 /// Check for NaN.
416 /// \tparam T argument type (builtin floating point type)

Callers 6

float2half_implFunction · 0.85
cbrtMethod · 0.85
hypotMethod · 0.85
lgammaMethod · 0.85
tgammaMethod · 0.85
erfMethod · 0.85

Calls 1

isinfFunction · 0.85

Tested by

no test coverage detected