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

Method CountLeadingBinaryZeros

cpp/src/arrow/util/basic_decimal.cc:391–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389
390template <typename BaseType>
391int32_t SmallBasicDecimal<BaseType>::CountLeadingBinaryZeros() const {
392 return std::countl_zero(static_cast<std::make_unsigned_t<BaseType>>(value_));
393}
394
395// same as kDecimal128PowersOfTen[38] - 1
396static constexpr BasicDecimal128 kMaxDecimal128Value{5421010862427522170LL,

Callers 3

MinLeadingZerosFunction · 0.80

Calls 3

BasicDecimal128Function · 0.85
high_bitsFunction · 0.85
low_bitsFunction · 0.85

Tested by

no test coverage detected