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

Function round_half_up

support/Rounding.h:122–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 */
121template <typename T, ARM_COMPUTE_REQUIRES_TA(traits::is_floating_point<T>::value)>
122inline 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 *

Callers 1

roundFunction · 0.70

Calls 1

floorFunction · 0.85

Tested by

no test coverage detected