MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / to_extended_halfway

Function to_extended_halfway

Source/external/fast_float.h:2767–2774  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2765// halfway between b and b+u.
2766template <typename T>
2767fastfloat_really_inline FASTFLOAT_CONSTEXPR20
2768adjusted_mantissa to_extended_halfway(T value) noexcept {
2769 adjusted_mantissa am = to_extended(value);
2770 am.mantissa <<= 1;
2771 am.mantissa += 1;
2772 am.power2 -= 1;
2773 return am;
2774}
2775
2776// round an extended-precision float to the nearest machine float.
2777template <typename T, typename callback>

Callers 1

Calls 1

to_extendedFunction · 0.85

Tested by

no test coverage detected