|
1 | 1 | // Licensed under the MIT License <http://opensource.org/licenses/MIT>. |
2 | 2 | // SPDX-License-Identifier: MIT |
3 | 3 | // RapidFuzz v1.0.2 |
4 | | -// Generated: 2022-11-19 11:04:42.990794 |
| 4 | +// Generated: 2022-12-11 00:18:48.007741 |
5 | 5 | // ---------------------------------------------------------- |
6 | 6 | // This file is an amalgamation of multiple different files. |
7 | 7 | // You probably shouldn't edit it directly. |
@@ -7137,14 +7137,15 @@ struct MultiLevenshtein : public detail::MultiDistanceBase<MultiLevenshtein<MaxL |
7137 | 7137 | if (score_count < result_count()) |
7138 | 7138 | throw std::invalid_argument("scores has to have >= result_count() elements"); |
7139 | 7139 |
|
| 7140 | + detail::Range scores_(scores, scores + score_count); |
7140 | 7141 | if constexpr (MaxLen == 8) |
7141 | | - detail::levenshtein_hyrroe2003_simd<uint8_t>(scores, PM, str_lens, s2, score_cutoff); |
| 7142 | + detail::levenshtein_hyrroe2003_simd<uint8_t>(scores_, PM, str_lens, s2, score_cutoff); |
7142 | 7143 | else if constexpr (MaxLen == 16) |
7143 | | - detail::levenshtein_hyrroe2003_simd<uint16_t>(scores, PM, str_lens, s2, score_cutoff); |
| 7144 | + detail::levenshtein_hyrroe2003_simd<uint16_t>(scores_, PM, str_lens, s2, score_cutoff); |
7144 | 7145 | else if constexpr (MaxLen == 32) |
7145 | | - detail::levenshtein_hyrroe2003_simd<uint32_t>(scores, PM, str_lens, s2, score_cutoff); |
| 7146 | + detail::levenshtein_hyrroe2003_simd<uint32_t>(scores_, PM, str_lens, s2, score_cutoff); |
7146 | 7147 | else if constexpr (MaxLen == 64) |
7147 | | - detail::levenshtein_hyrroe2003_simd<uint64_t>(scores, PM, str_lens, s2, score_cutoff); |
| 7148 | + detail::levenshtein_hyrroe2003_simd<uint64_t>(scores_, PM, str_lens, s2, score_cutoff); |
7148 | 7149 | } |
7149 | 7150 |
|
7150 | 7151 | template <typename InputIt2> |
@@ -7698,14 +7699,15 @@ struct MultiOSA |
7698 | 7699 | if (score_count < result_count()) |
7699 | 7700 | throw std::invalid_argument("scores has to have >= result_count() elements"); |
7700 | 7701 |
|
| 7702 | + detail::Range scores_(scores, scores + score_count); |
7701 | 7703 | if constexpr (MaxLen == 8) |
7702 | | - detail::osa_hyrroe2003_simd<uint8_t>(scores, PM, str_lens, s2, score_cutoff); |
| 7704 | + detail::osa_hyrroe2003_simd<uint8_t>(scores_, PM, str_lens, s2, score_cutoff); |
7703 | 7705 | else if constexpr (MaxLen == 16) |
7704 | | - detail::osa_hyrroe2003_simd<uint16_t>(scores, PM, str_lens, s2, score_cutoff); |
| 7706 | + detail::osa_hyrroe2003_simd<uint16_t>(scores_, PM, str_lens, s2, score_cutoff); |
7705 | 7707 | else if constexpr (MaxLen == 32) |
7706 | | - detail::osa_hyrroe2003_simd<uint32_t>(scores, PM, str_lens, s2, score_cutoff); |
| 7708 | + detail::osa_hyrroe2003_simd<uint32_t>(scores_, PM, str_lens, s2, score_cutoff); |
7707 | 7709 | else if constexpr (MaxLen == 64) |
7708 | | - detail::osa_hyrroe2003_simd<uint64_t>(scores, PM, str_lens, s2, score_cutoff); |
| 7710 | + detail::osa_hyrroe2003_simd<uint64_t>(scores_, PM, str_lens, s2, score_cutoff); |
7709 | 7711 | } |
7710 | 7712 |
|
7711 | 7713 | template <typename InputIt2> |
@@ -8126,6 +8128,7 @@ std::basic_string<CharT> opcodes_apply(const Opcodes& ops, const Sentence1& s1, |
8126 | 8128 |
|
8127 | 8129 | #include <array> |
8128 | 8130 | #include <limits> |
| 8131 | +#include <stdint.h> |
8129 | 8132 | #include <stdio.h> |
8130 | 8133 | #include <type_traits> |
8131 | 8134 | #include <unordered_set> |
|
0 commit comments