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

Function round_half_up

tests/Utils.h:69–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 */
68template <typename T, typename = typename std::enable_if<std::is_floating_point<T>::value>::type>
69inline T round_half_up(T value)
70{
71 return std::floor(value + 0.5f);
72}
73
74/** Round floating-point value with half value rounding to nearest even.
75 *

Callers 2

Utils.cppFile · 0.50
mulFunction · 0.50

Calls 1

floorFunction · 0.85

Tested by

no test coverage detected