|
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: 2023-12-24 17:22:29.576990 |
| 4 | +// Generated: 2023-12-24 17:28:29.475831 |
5 | 5 | // ---------------------------------------------------------- |
6 | 6 | // This file is an amalgamation of multiple different files. |
7 | 7 | // You probably shouldn't edit it directly. |
@@ -1546,12 +1546,12 @@ static inline unsigned int countr_zero(uint64_t x) |
1546 | 1546 |
|
1547 | 1547 | static inline unsigned int countr_zero(uint16_t x) |
1548 | 1548 | { |
1549 | | - return static_cast<unsigned int>(countr_zero(static_cast<uint32_t>(x))); |
| 1549 | + return countr_zero(static_cast<uint32_t>(x)); |
1550 | 1550 | } |
1551 | 1551 |
|
1552 | 1552 | static inline unsigned int countr_zero(uint8_t x) |
1553 | 1553 | { |
1554 | | - return static_cast<unsigned int>(countr_zero(static_cast<uint32_t>(x))); |
| 1554 | + return countr_zero(static_cast<uint32_t>(x)); |
1555 | 1555 | } |
1556 | 1556 |
|
1557 | 1557 | template <class T, T... inds, class F> |
@@ -8238,17 +8238,13 @@ struct MultiLevenshtein : public detail::MultiDistanceBase<MultiLevenshtein<MaxL |
8238 | 8238 |
|
8239 | 8239 | detail::Range scores_(scores, scores + score_count); |
8240 | 8240 | if constexpr (MaxLen == 8) |
8241 | | - detail::levenshtein_hyrroe2003_simd<uint8_t>(scores_, PM, str_lens, s2, |
8242 | | - static_cast<size_t>(score_cutoff)); |
| 8241 | + detail::levenshtein_hyrroe2003_simd<uint8_t>(scores_, PM, str_lens, s2, score_cutoff); |
8243 | 8242 | else if constexpr (MaxLen == 16) |
8244 | | - detail::levenshtein_hyrroe2003_simd<uint16_t>(scores_, PM, str_lens, s2, |
8245 | | - static_cast<size_t>(score_cutoff)); |
| 8243 | + detail::levenshtein_hyrroe2003_simd<uint16_t>(scores_, PM, str_lens, s2, score_cutoff); |
8246 | 8244 | else if constexpr (MaxLen == 32) |
8247 | | - detail::levenshtein_hyrroe2003_simd<uint32_t>(scores_, PM, str_lens, s2, |
8248 | | - static_cast<size_t>(score_cutoff)); |
| 8245 | + detail::levenshtein_hyrroe2003_simd<uint32_t>(scores_, PM, str_lens, s2, score_cutoff); |
8249 | 8246 | else if constexpr (MaxLen == 64) |
8250 | | - detail::levenshtein_hyrroe2003_simd<uint64_t>(scores_, PM, str_lens, s2, |
8251 | | - static_cast<size_t>(score_cutoff)); |
| 8247 | + detail::levenshtein_hyrroe2003_simd<uint64_t>(scores_, PM, str_lens, s2, score_cutoff); |
8252 | 8248 | } |
8253 | 8249 |
|
8254 | 8250 | template <typename InputIt2> |
@@ -8600,7 +8596,7 @@ class OSA : public DistanceBase<OSA, size_t, 0, std::numeric_limits<int64_t>::ma |
8600 | 8596 |
|
8601 | 8597 | remove_common_affix(s1, s2); |
8602 | 8598 | if (s1.empty()) |
8603 | | - return (s2.size() <= static_cast<size_t>(score_cutoff)) ? s2.size() : score_cutoff + 1; |
| 8599 | + return (s2.size() <= score_cutoff) ? s2.size() : score_cutoff + 1; |
8604 | 8600 | else if (s1.size() < 64) |
8605 | 8601 | return osa_hyrroe2003(PatternMatchVector(s1), s1, s2, score_cutoff); |
8606 | 8602 | else |
@@ -8804,17 +8800,13 @@ struct MultiOSA |
8804 | 8800 |
|
8805 | 8801 | detail::Range scores_(scores, scores + score_count); |
8806 | 8802 | if constexpr (MaxLen == 8) |
8807 | | - detail::osa_hyrroe2003_simd<uint8_t>(scores_, PM, str_lens, s2, |
8808 | | - static_cast<size_t>(score_cutoff)); |
| 8803 | + detail::osa_hyrroe2003_simd<uint8_t>(scores_, PM, str_lens, s2, score_cutoff); |
8809 | 8804 | else if constexpr (MaxLen == 16) |
8810 | | - detail::osa_hyrroe2003_simd<uint16_t>(scores_, PM, str_lens, s2, |
8811 | | - static_cast<size_t>(score_cutoff)); |
| 8805 | + detail::osa_hyrroe2003_simd<uint16_t>(scores_, PM, str_lens, s2, score_cutoff); |
8812 | 8806 | else if constexpr (MaxLen == 32) |
8813 | | - detail::osa_hyrroe2003_simd<uint32_t>(scores_, PM, str_lens, s2, |
8814 | | - static_cast<size_t>(score_cutoff)); |
| 8807 | + detail::osa_hyrroe2003_simd<uint32_t>(scores_, PM, str_lens, s2, score_cutoff); |
8815 | 8808 | else if constexpr (MaxLen == 64) |
8816 | | - detail::osa_hyrroe2003_simd<uint64_t>(scores_, PM, str_lens, s2, |
8817 | | - static_cast<size_t>(score_cutoff)); |
| 8809 | + detail::osa_hyrroe2003_simd<uint64_t>(scores_, PM, str_lens, s2, score_cutoff); |
8818 | 8810 | } |
8819 | 8811 |
|
8820 | 8812 | template <typename InputIt2> |
|
0 commit comments