MCPcopy Create free account
hub / github.com/OpenNMT/CTranslate2 / lround

Function lround

include/half_float/half.hpp:4102–4102  ·  view source on GitHub ↗

Nearest integer. See also:** Documentation for [std::lround](https://en.cppreference.com/w/cpp/numeric/math/round). \param arg half to round \return nearest integer, rounded away from zero in half-way cases \exception FE_INVALID if value is not representable as `long`

Source from the content-addressed store, hash-verified

4100 /// \return nearest integer, rounded away from zero in half-way cases
4101 /// \exception FE_INVALID if value is not representable as `long`
4102 inline long lround(half arg) { return detail::half2int<std::round_to_nearest,false,false,long>(arg.data_); }
4103
4104 /// Nearest integer using half's internal rounding mode.
4105 /// **See also:** Documentation for [std::rint](https://en.cppreference.com/w/cpp/numeric/math/rint).

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected