Skip to content

Commit

Permalink
fix: SSE only build (facebookincubator#11542)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: facebookincubator#11542

Reviewed By: parmeet

Differential Revision: D65975193
  • Loading branch information
Yuhta authored and facebook-github-bot committed Nov 14, 2024
1 parent cce529e commit 5ee9d95
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions velox/common/base/SimdUtil-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1453,6 +1453,8 @@ using CharVector = xsimd::batch<uint8_t, xsimd::neon>;

extern const int kPageSize;

#if VELOX_SIMD_STRSTR

FOLLY_ALWAYS_INLINE bool pageSafe(const void* const ptr) {
return ((kPageSize - 1) & reinterpret_cast<std::uintptr_t>(ptr)) <=
kPageSize - CharVector::size;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5ee9d95

Please sign in to comment.