MCPcopy Create free account
hub / github.com/apache/fory / is_finite

Method is_finite

cpp/fory/util/float16.h:89–91  ·  view source on GitHub ↗

True if the value is finite (not Inf and not NaN).

Source from the content-addressed store, hash-verified

87
88 // True if the value is finite (not Inf and not NaN).
89 [[nodiscard]] static bool is_finite(float16_t h) noexcept {
90 return (h.bits & 0x7C00u) != 0x7C00u;
91 }
92
93 // ---- Comparisons (IEEE 754-consistent) ----
94 // NaN != NaN; +0 == -0.

Callers 3

_decimal_partsFunction · 0.45
_canonical_decimalFunction · 0.45
_int_valueFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected