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

Function signbit

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

\brief Return true if the value is negative (sign bit is set)

Source from the content-addressed store, hash-verified

75
76 /// \brief Return true if the value is negative (sign bit is set)
77 constexpr bool signbit() const { return (bits_ & 0x8000) != 0; }
78
79 /// \brief Return true if the value is NaN
80 constexpr bool is_nan() const { return (bits_ & 0x7fff) > 0x7c00; }

Callers 11

operator()Method · 0.85
TestRoundTripMethod · 0.85
TestRoundTripFromNaNMethod · 0.85
TestRoundTripFromInfMethod · 0.85
AssertValueEquals<float>Function · 0.85
CallMethod · 0.85
RoundMethod · 0.85
signbitMethod · 0.85
CleanStatisticFunction · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 7

TestRoundTripMethod · 0.68
TestRoundTripFromNaNMethod · 0.68
TestRoundTripFromInfMethod · 0.68
AssertValueEquals<float>Function · 0.68
signbitMethod · 0.68
TESTFunction · 0.68