Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
jinchengchenghh committed Aug 21, 2024
1 parent 072d8a3 commit 5262c1f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions cpp/velox/operators/serializer/VeloxRowToColumnarConverter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,7 @@ VectorPtr createFlatVector(
auto typeWidth = sizeof(T);
auto column = BaseVector::create<FlatVector<T>>(type, numRows, pool);
auto rawValues = column->template mutableRawValues<uint8_t>();
#if defined(__x86_64__)
auto shift = _tzcnt_u32(typeWidth);
#else
auto shift = __builtin_ctz((uint32_t)typeWidth);
#endif
for (auto pos = 0; pos < numRows; pos++) {
if (!isNull(memoryAddress + offsets[pos], columnIdx)) {
const uint8_t* srcptr = (memoryAddress + offsets[pos] + fieldOffset);
Expand All @@ -101,11 +97,7 @@ VectorPtr createFlatVector<TypeKind::HUGEINT>(
auto column = BaseVector::create<FlatVector<int128_t>>(type, numRows, pool);
auto rawValues = column->mutableRawValues<uint8_t>();
auto typeWidth = sizeof(int128_t);
#if defined(__x86_64__)
auto shift = _tzcnt_u32(typeWidth);
#else
auto shift = __builtin_ctz((uint32_t)typeWidth);
#endif
for (auto pos = 0; pos < numRows; pos++) {
if (!isNull(memoryAddress + offsets[pos], columnIdx)) {
uint8_t* destptr = rawValues + (pos << shift);
Expand Down

0 comments on commit 5262c1f

Please sign in to comment.