MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / round_half_up

Function round_half_up

extern/half/include/half.hpp:1059–1059  ·  view source on GitHub ↗

Round half-precision number to nearest integer value using round-to-nearest-away-from-zero. \param value binary representation of half-precision value \return half-precision bits for nearest integral value

Source from the content-addressed store, hash-verified

1057 /// \param value binary representation of half-precision value
1058 /// \return half-precision bits for nearest integral value
1059 inline uint16 round_half_up(uint16 value) { return round_half_impl<std::round_to_nearest,0>(value); }
1060 /// \}
1061
1062 struct functions;

Callers 1

roundMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected