pitrou commented on code in PR #48217:
URL: https://github.com/apache/arrow/pull/48217#discussion_r3348670962


##########
cpp/src/arrow/util/byte_stream_split_internal.h:
##########
@@ -330,15 +330,20 @@ inline void DoSplitStreams(const uint8_t* src, int width, 
int64_t nvalues,
   while (nvalues >= kBlockSize) {
     for (int stream = 0; stream < width; ++stream) {
       uint8_t* dest = dest_streams[stream];
+#if ARROW_LITTLE_ENDIAN
+      const int src_stream = stream;
+#else
+      const int src_stream = width - 1 - stream;
+#endif

Review Comment:
   Well, I don't understand why this change is necessary? Can you explain 
(preferably by showing example input/outputs)?



-- 
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