Skip to content

Commit

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

Reviewed By: parmeet

Differential Revision: D65975193

fbshipit-source-id: db10d9a711c09cfb415b15062557a42b469e8fb8
  • Loading branch information
Yuhta authored and facebook-github-bot committed Nov 15, 2024
1 parent ab02900 commit 8aeb51c
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 8aeb51c

Please sign in to comment.