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

Function floor

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

Nearest integer not greater than half value. See also:** Documentation for [std::floor](https://en.cppreference.com/w/cpp/numeric/math/floor). \param arg half to round \return nearest integer not greater 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

4077 /// \exception FE_INVALID for signaling NaN
4078 /// \exception FE_INEXACT if value had to be rounded
4079 inline half floor(half arg) { return half(detail::binary, detail::integral<std::round_toward_neg_infinity,true,true>(arg.data_)); }
4080
4081 /// Nearest integer not greater in magnitude than half value.
4082 /// **See also:** Documentation for [std::trunc](https://en.cppreference.com/w/cpp/numeric/math/trunc).

Callers 1

build_alibiFunction · 0.85

Calls 1

halfClass · 0.85

Tested by

no test coverage detected