diff --git a/cpp/src/arrow/compute/kernels/ree_util_internal.h b/cpp/src/arrow/compute/kernels/ree_util_internal.h index 8e06427b8d1a4..07578a702c066 100644 --- a/cpp/src/arrow/compute/kernels/ree_util_internal.h +++ b/cpp/src/arrow/compute/kernels/ree_util_internal.h @@ -81,6 +81,18 @@ class ReadWriteValue) { + return bit_util::GetBit(input_values_, i) == bit_util::GetBit(input_values_, j); + } else { + return (reinterpret_cast(input_values_))[i] == + (reinterpret_cast(input_values_))[j]; + } + } + /// \brief Ensure padding is zeroed in validity bitmap. void ZeroValidityPadding(int64_t length) const { DCHECK(output_values_); @@ -164,6 +176,11 @@ class ReadWriteValue(len_i)); + } + /// \brief Ensure padding is zeroed in validity bitmap. void ZeroValidityPadding(int64_t length) const { DCHECK(output_values_);