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

Method is_zero

cpp/fory/util/float16.h:68–70  ·  view source on GitHub ↗

True if the value is +0 or -0.

Source from the content-addressed store, hash-verified

66
67 // True if the value is +0 or -0.
68 [[nodiscard]] static bool is_zero(float16_t h) noexcept {
69 return (h.bits & 0x7FFFu) == 0u;
70 }
71
72 // True if the sign bit is set (value is negative or negative zero/NaN).
73 [[nodiscard]] static bool signbit(float16_t h) noexcept {

Callers 4

_canonical_decimalFunction · 0.45
_float_valueFunction · 0.45
_plain_decimal_textFunction · 0.45
_numeric_valueFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected