| 105 | */ |
| 106 | template <typename T, ARM_COMPUTE_REQUIRES_TA(traits::is_floating_point<T>::value)> |
| 107 | inline T round_half_away_from_zero(T value) |
| 108 | { |
| 109 | T res = T(std::floor(std::fabs(value) + 0.5f)); |
| 110 | return (value < 0.f) ? -res : res; |
| 111 | } |
| 112 | |
| 113 | /** Round floating-point value with half value rounding to positive infinity. |
| 114 | * |
no test coverage detected