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

Function is_nan

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

\brief Return true if the value is NaN

Source from the content-addressed store, hash-verified

78
79 /// \brief Return true if the value is NaN
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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected