MCPcopy Create free account
hub / github.com/OpenNMT/CTranslate2 / half round_error

Method half round_error

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

Maximum rounding error in ULP (units in the last place).

Source from the content-addressed store, hash-verified

2415
2416 /// Maximum rounding error in ULP (units in the last place).
2417 static HALF_CONSTEXPR half_float::half round_error() HALF_NOTHROW
2418 { return half_float::half(half_float::detail::binary, (round_style==std::round_to_nearest) ? 0x3800 : 0x3C00); }
2419
2420 /// Positive infinity.
2421 static HALF_CONSTEXPR half_float::half infinity() HALF_NOTHROW { return half_float::half(half_float::detail::binary, 0x7C00); }

Callers

nothing calls this directly

Calls 1

halfClass · 0.85

Tested by

no test coverage detected