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

Function is_finite

cpp/src/arrow/util/float16.h:84–84  ·  view source on GitHub ↗

\brief Return true if the value is finite and not NaN

Source from the content-addressed store, hash-verified

82 constexpr bool is_infinity() const { return (bits_ & 0x7fff) == 0x7c00; }
83 /// \brief Return true if the value is finite and not NaN
84 constexpr bool is_finite() const { return (bits_ & 0x7c00) != 0x7c00; }
85 /// \brief Return true if the value is positive/negative zero
86 constexpr bool is_zero() const { return (bits_ & 0x7fff) == 0; }
87

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected