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

Function is_infinity

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

\brief Return true if the value is positive/negative infinity

Source from the content-addressed store, hash-verified

80 constexpr bool is_nan() const { return (bits_ & 0x7fff) > 0x7c00; }
81 /// \brief Return true if the value is positive/negative infinity
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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected