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

Function are_equal_infs

tests/validation/Validation.h:53–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51// Compare if 2 values are both infinities and if they are "equal" (has the same sign)
52template <typename T>
53inline bool are_equal_infs(T val0, T val1)
54{
55 const auto same_sign = support::cpp11::signbit(val0) == support::cpp11::signbit(val1);
56 return (!support::cpp11::isfinite(val0)) && (!support::cpp11::isfinite(val1)) && same_sign;
57}
58
59#ifdef ARM_COMPUTE_ENABLE_FP16
60template <>

Callers 4

validate_wrapFunction · 0.85
equal_values_relativeFunction · 0.85

Calls 2

signbitFunction · 0.50
isfiniteFunction · 0.50

Tested by

no test coverage detected