From eb5388ab3b0b70d521f427af774a525b7d29e700 Mon Sep 17 00:00:00 2001 From: Chengcheng Jin Date: Wed, 21 Aug 2024 16:41:42 +0000 Subject: [PATCH] fix compile --- .../operators/serializer/VeloxRowToColumnarConverter.cc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cpp/velox/operators/serializer/VeloxRowToColumnarConverter.cc b/cpp/velox/operators/serializer/VeloxRowToColumnarConverter.cc index a247b4021a42..928b483b2f6e 100644 --- a/cpp/velox/operators/serializer/VeloxRowToColumnarConverter.cc +++ b/cpp/velox/operators/serializer/VeloxRowToColumnarConverter.cc @@ -72,11 +72,7 @@ VectorPtr createFlatVector( auto typeWidth = sizeof(T); auto column = BaseVector::create>(type, numRows, pool); auto rawValues = column->template mutableRawValues(); -#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); @@ -101,11 +97,7 @@ VectorPtr createFlatVector( auto column = BaseVector::create>(type, numRows, pool); auto rawValues = column->mutableRawValues(); 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);