Hattonuri commented on code in PR #39403:
URL: https://github.com/apache/arrow/pull/39403#discussion_r1439039971


##########
cpp/src/arrow/util/bit_util.h:
##########
@@ -167,10 +167,8 @@ constexpr int64_t CoveringBytes(int64_t offset, int64_t 
length) {
 
 // Returns the 'num_bits' least-significant bits of 'v'.
 static inline uint64_t TrailingBits(uint64_t v, int num_bits) {
-  if (ARROW_PREDICT_FALSE(num_bits == 0)) return 0;

Review Comment:
   i think related, because ((v >> 0) << 0) ^ v == v ^ v == 0



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to