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

Function round_half_down

support/Rounding.h:136–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134 */
135template <typename T, ARM_COMPUTE_REQUIRES_TA(traits::is_floating_point<T>::value)>
136inline T round_half_down(T value)
137{
138 return std::ceil(value - 0.5f);
139}
140
141/** Round floating-point value with half value rounding to nearest even.
142 *

Callers 1

roundFunction · 0.85

Calls 1

ceilFunction · 0.85

Tested by

no test coverage detected