diff --git a/velox/common/base/SimdUtil-inl.h b/velox/common/base/SimdUtil-inl.h index 04d0628338c9..be88b940e3a7 100644 --- a/velox/common/base/SimdUtil-inl.h +++ b/velox/common/base/SimdUtil-inl.h @@ -1453,6 +1453,8 @@ using CharVector = xsimd::batch; extern const int kPageSize; +#if VELOX_SIMD_STRSTR + FOLLY_ALWAYS_INLINE bool pageSafe(const void* const ptr) { return ((kPageSize - 1) & reinterpret_cast(ptr)) <= kPageSize - CharVector::size; @@ -1523,6 +1525,8 @@ size_t FOLLY_ALWAYS_INLINE smidStrstrMemcmp( return std::string::npos; }; +#endif + } // namespace detail /// A faster implementation for std::find, about 2x faster than string_view`s