11// Licensed under the MIT License <http://opensource.org/licenses/MIT>.
22// SPDX-License-Identifier: MIT
33// RapidFuzz v1.0.2
4- // Generated: 2023-10-21 19:41:24.603454
4+ // Generated: 2023-10-28 05:15:10.035216
55// ----------------------------------------------------------
66// This file is an amalgamation of multiple different files.
77// You probably shouldn't edit it directly.
@@ -5341,8 +5341,9 @@ static inline size_t count_common_chars(const FlaggedCharsMultiword& flagged)
53415341}
53425342
53435343template <typename PM_Vec, typename InputIt1, typename InputIt2>
5344- FlaggedCharsWord flag_similar_characters_word (const PM_Vec& PM, [[maybe_unused]] Range<InputIt1> P,
5345- Range<InputIt2> T, int Bound)
5344+ static inline FlaggedCharsWord flag_similar_characters_word (const PM_Vec& PM,
5345+ [[maybe_unused]] Range<InputIt1> P,
5346+ Range<InputIt2> T, int Bound)
53465347{
53475348 assert (P.size () <= 64 );
53485349 assert (T.size () <= 64 );
@@ -5376,8 +5377,9 @@ FlaggedCharsWord flag_similar_characters_word(const PM_Vec& PM, [[maybe_unused]]
53765377}
53775378
53785379template <typename CharT>
5379- void flag_similar_characters_step (const BlockPatternMatchVector& PM, CharT T_j,
5380- FlaggedCharsMultiword& flagged, size_t j, SearchBoundMask BoundMask)
5380+ static inline void flag_similar_characters_step (const BlockPatternMatchVector& PM, CharT T_j,
5381+ FlaggedCharsMultiword& flagged, size_t j,
5382+ SearchBoundMask BoundMask)
53815383{
53825384 size_t j_word = j / 64 ;
53835385 size_t j_pos = j % 64 ;
@@ -5575,7 +5577,7 @@ static inline int64_t jaro_bounds(int64_t P_len, int64_t T_len)
55755577 * @brief find bounds and skip out of bound parts of the sequences
55765578 */
55775579template <typename InputIt1, typename InputIt2>
5578- int64_t jaro_bounds (Range<InputIt1>& P, Range<InputIt2>& T)
5580+ static inline int64_t jaro_bounds (Range<InputIt1>& P, Range<InputIt2>& T)
55795581{
55805582 int64_t P_len = P.size ();
55815583 int64_t T_len = T.size ();
@@ -5600,7 +5602,7 @@ int64_t jaro_bounds(Range<InputIt1>& P, Range<InputIt2>& T)
56005602}
56015603
56025604template <typename InputIt1, typename InputIt2>
5603- double jaro_similarity (Range<InputIt1> P, Range<InputIt2> T, double score_cutoff)
5605+ static inline double jaro_similarity (Range<InputIt1> P, Range<InputIt2> T, double score_cutoff)
56045606{
56055607 int64_t P_len = P.size ();
56065608 int64_t T_len = T.size ();
@@ -5648,8 +5650,8 @@ double jaro_similarity(Range<InputIt1> P, Range<InputIt2> T, double score_cutoff
56485650}
56495651
56505652template <typename InputIt1, typename InputIt2>
5651- double jaro_similarity (const BlockPatternMatchVector& PM, Range<InputIt1> P, Range<InputIt2> T,
5652- double score_cutoff)
5653+ static inline double jaro_similarity (const BlockPatternMatchVector& PM, Range<InputIt1> P, Range<InputIt2> T,
5654+ double score_cutoff)
56535655{
56545656 int64_t P_len = P.size ();
56555657 int64_t T_len = T.size ();
@@ -5705,7 +5707,7 @@ struct JaroSimilaritySimdBounds {
57055707
57065708# ifdef RAPIDFUZZ_AVX2
57075709template <typename VecType, typename InputIt, int _lto_hack = RAPIDFUZZ_LTO_HACK>
5708- auto jaro_similarity_prepare_bound (const VecType* s1_lengths, Range<InputIt>& s2)
5710+ static inline auto jaro_similarity_prepare_bound (const VecType* s1_lengths, Range<InputIt>& s2)
57095711{
57105712 using namespace simd_avx2 ;
57115713
@@ -5763,7 +5765,7 @@ auto jaro_similarity_prepare_bound(const VecType* s1_lengths, Range<InputIt>& s2
57635765}
57645766# else
57655767template <typename VecType, typename InputIt, int _lto_hack = RAPIDFUZZ_LTO_HACK>
5766- auto jaro_similarity_prepare_bound (const VecType* s1_lengths, Range<InputIt>& s2)
5768+ static inline auto jaro_similarity_prepare_bound (const VecType* s1_lengths, Range<InputIt>& s2)
57675769{
57685770 using namespace simd_sse2 ;
57695771
@@ -5807,9 +5809,9 @@ auto jaro_similarity_prepare_bound(const VecType* s1_lengths, Range<InputIt>& s2
58075809# endif
58085810
58095811template <typename VecType, typename InputIt, int _lto_hack = RAPIDFUZZ_LTO_HACK>
5810- void jaro_similarity_simd (Range<double *> scores, const detail::BlockPatternMatchVector& block,
5811- VecType* s1_lengths, size_t s1_lengths_size, Range<InputIt> s2,
5812- double score_cutoff) noexcept
5812+ static inline void jaro_similarity_simd (Range<double *> scores, const detail::BlockPatternMatchVector& block,
5813+ VecType* s1_lengths, size_t s1_lengths_size, Range<InputIt> s2,
5814+ double score_cutoff) noexcept
58135815{
58145816# ifdef RAPIDFUZZ_AVX2
58155817 using namespace simd_avx2 ;
0 commit comments