| 51 | // Compare if 2 values are both infinities and if they are "equal" (has the same sign) |
| 52 | template <typename T> |
| 53 | inline 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 |
| 60 | template <> |
no test coverage detected