| 120 | */ |
| 121 | template <typename T, ARM_COMPUTE_REQUIRES_TA(traits::is_floating_point<T>::value)> |
| 122 | inline T round_half_up(T value) |
| 123 | { |
| 124 | return std::floor(value + 0.5f); |
| 125 | } |
| 126 | |
| 127 | /** Round floating-point value with half value rounding to negative infinity. |
| 128 | * |