Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zanmato1984 committed Jun 17, 2024
1 parent e2d8a41 commit c96540d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions cpp/src/arrow/compute/row/compare_internal_avx2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,9 @@ inline __m256i UnsignedOffsetSafeGather32(int const* base, __m256i offset,
return _mm256_i32gather_epi32(normalized_base, normalized_offset, 1);
}

inline __m256i UnsignedOffsetSafeGather64(long long const* base, __m128i offset,
const int scale = 1) {
auto normalized_base = base + 0x80000000ull / sizeof(long long);
inline __m256i UnsignedOffsetSafeGather64(arrow::util::int64_for_gather_t const* base,
__m128i offset, const int scale = 1) {
auto normalized_base = base + 0x80000000ull / sizeof(arrow::util::int64_for_gather_t);
__m128i normalized_offset = _mm_sub_epi32(offset, _mm_set1_epi32(0x80000000));
return _mm256_i32gather_epi64(normalized_base, normalized_offset, 1);
}
Expand Down
6 changes: 3 additions & 3 deletions cpp/src/arrow/compute/row/compare_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ TEST(KeyCompare, CompareColumnsToRowsLarge) {
GTEST_SKIP() << "Test only works on 64-bit platforms";
}

// The idea of this case is to create a row table using several fixed length columns one
// var length column (so the row is hence var length and has offset buffer), with the
// overall data size exceeding 2GB. Then compare each row with itself.
// The idea of this case is to create a row table using several fixed length columns and
// one var length column (so the row is hence var length and has offset buffer), with
// the overall data size exceeding 2GB. Then compare each row with itself.
constexpr int64_t two_gb = 2ll * 1024ll * 1024ll * 1024ll;
// The compare function requires the row id of the left column to be uint16_t, hence the
// number of rows.
Expand Down

0 comments on commit c96540d

Please sign in to comment.