Alex Behm has posted comments on this change.

Change subject: IMPALA-2809: Improved scalar ByteSwap().
......................................................................


Patch Set 1:

(5 comments)

http://gerrit.cloudera.org:8080/#/c/3033/1/be/src/util/bit-util.h
File be/src/util/bit-util.h:

Line 167:   /// Write the swapped bytes into dest. source and dest cannot 
overlap.
> Can we move this into an inline.h file? This header is included essentially
Good idea. Done.


Line 168:   static inline void ByteSwap(void* dest, const void* source, int 
fixed_len_size) {
> why not 'len'?
Wfm. Done.


Line 177:             BitUtil::ByteSwap(*reinterpret_cast<const int16_t*>(src));
> The BitUtil:: prefix is unnecessary.
Done


Line 264:       default:
> The default case is a little weird in that we fall back to a deoptimised im
Done


Line 265:         uint8_t* d = reinterpret_cast<uint8_t*>(dst);
> These casts are redundant now.
Done


-- 
To view, visit http://gerrit.cloudera.org:8080/3033
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I4f462e6bdb022db46b48889a6a7426120a80d9b4
Gerrit-PatchSet: 1
Gerrit-Project: Impala
Gerrit-Branch: cdh5-trunk
Gerrit-Owner: Alex Behm <[email protected]>
Gerrit-Reviewer: Alex Behm <[email protected]>
Gerrit-Reviewer: Tim Armstrong <[email protected]>
Gerrit-HasComments: Yes

Reply via email to