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

Function ceil

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

Nearest integer not less than half value. See also:** Documentation for [std::ceil](https://en.cppreference.com/w/cpp/numeric/math/ceil). \param arg half to round \return nearest integer not less than \a arg \exception FE_INVALID for signaling NaN \exception FE_INEXACT if value had to be rounded

Source from the content-addressed store, hash-verified

4069 /// \exception FE_INVALID for signaling NaN
4070 /// \exception FE_INEXACT if value had to be rounded
4071 inline half ceil(half arg) { return half(detail::binary, detail::integral<std::round_toward_infinity,true,true>(arg.data_)); }
4072
4073 /// Nearest integer not greater than half value.
4074 /// **See also:** Documentation for [std::floor](https://en.cppreference.com/w/cpp/numeric/math/floor).

Callers

nothing calls this directly

Calls 1

halfClass · 0.85

Tested by

no test coverage detected