/src/simdutf/src/generic/aligned_split.h
Line | Count | Source |
1 | | namespace simdutf { |
2 | | namespace SIMDUTF_IMPLEMENTATION { |
3 | | namespace { |
4 | | namespace aligned_split { |
5 | | constexpr size_t min_bytes = 65536; |
6 | | |
7 | | template <typename T> |
8 | 377k | simdutf_really_inline size_t head(const T *p, size_t len) { |
9 | 377k | if (len * sizeof(T) < min_bytes) { |
10 | 369k | return 0; |
11 | 369k | } |
12 | 8.09k | const size_t misalignment = reinterpret_cast<uintptr_t>(p) % 64; |
13 | 8.09k | if (misalignment == 0 || misalignment % sizeof(T) != 0) { |
14 | 202 | return 0; |
15 | 202 | } |
16 | 7.89k | return (64 - misalignment) / sizeof(T); |
17 | 8.09k | } Unexecuted instantiation: simdutf.cpp:unsigned long simdutf::icelake::(anonymous namespace)::aligned_split::head<char16_t>(char16_t const*, unsigned long) Unexecuted instantiation: simdutf.cpp:unsigned long simdutf::icelake::(anonymous namespace)::aligned_split::head<char>(char const*, unsigned long) Unexecuted instantiation: simdutf.cpp:unsigned long simdutf::icelake::(anonymous namespace)::aligned_split::head<char32_t>(char32_t const*, unsigned long) simdutf.cpp:unsigned long simdutf::haswell::(anonymous namespace)::aligned_split::head<char>(char const*, unsigned long) Line | Count | Source | 8 | 112k | simdutf_really_inline size_t head(const T *p, size_t len) { | 9 | 112k | if (len * sizeof(T) < min_bytes) { | 10 | 109k | return 0; | 11 | 109k | } | 12 | 2.50k | const size_t misalignment = reinterpret_cast<uintptr_t>(p) % 64; | 13 | 2.50k | if (misalignment == 0 || misalignment % sizeof(T) != 0) { | 14 | 118 | return 0; | 15 | 118 | } | 16 | 2.38k | return (64 - misalignment) / sizeof(T); | 17 | 2.50k | } |
simdutf.cpp:unsigned long simdutf::haswell::(anonymous namespace)::aligned_split::head<char16_t>(char16_t const*, unsigned long) Line | Count | Source | 8 | 97.0k | simdutf_really_inline size_t head(const T *p, size_t len) { | 9 | 97.0k | if (len * sizeof(T) < min_bytes) { | 10 | 94.8k | return 0; | 11 | 94.8k | } | 12 | 2.20k | const size_t misalignment = reinterpret_cast<uintptr_t>(p) % 64; | 13 | 2.20k | if (misalignment == 0 || misalignment % sizeof(T) != 0) { | 14 | 4 | return 0; | 15 | 4 | } | 16 | 2.20k | return (64 - misalignment) / sizeof(T); | 17 | 2.20k | } |
simdutf.cpp:unsigned long simdutf::haswell::(anonymous namespace)::aligned_split::head<char32_t>(char32_t const*, unsigned long) Line | Count | Source | 8 | 23.8k | simdutf_really_inline size_t head(const T *p, size_t len) { | 9 | 23.8k | if (len * sizeof(T) < min_bytes) { | 10 | 23.6k | return 0; | 11 | 23.6k | } | 12 | 231 | const size_t misalignment = reinterpret_cast<uintptr_t>(p) % 64; | 13 | 231 | if (misalignment == 0 || misalignment % sizeof(T) != 0) { | 14 | 0 | return 0; | 15 | 0 | } | 16 | 231 | return (64 - misalignment) / sizeof(T); | 17 | 231 | } |
simdutf.cpp:unsigned long simdutf::westmere::(anonymous namespace)::aligned_split::head<char>(char const*, unsigned long) Line | Count | Source | 8 | 82.5k | simdutf_really_inline size_t head(const T *p, size_t len) { | 9 | 82.5k | if (len * sizeof(T) < min_bytes) { | 10 | 80.3k | return 0; | 11 | 80.3k | } | 12 | 2.23k | const size_t misalignment = reinterpret_cast<uintptr_t>(p) % 64; | 13 | 2.23k | if (misalignment == 0 || misalignment % sizeof(T) != 0) { | 14 | 54 | return 0; | 15 | 54 | } | 16 | 2.17k | return (64 - misalignment) / sizeof(T); | 17 | 2.23k | } |
simdutf.cpp:unsigned long simdutf::westmere::(anonymous namespace)::aligned_split::head<char16_t>(char16_t const*, unsigned long) Line | Count | Source | 8 | 61.7k | simdutf_really_inline size_t head(const T *p, size_t len) { | 9 | 61.7k | if (len * sizeof(T) < min_bytes) { | 10 | 60.7k | return 0; | 11 | 60.7k | } | 12 | 920 | const size_t misalignment = reinterpret_cast<uintptr_t>(p) % 64; | 13 | 920 | if (misalignment == 0 || misalignment % sizeof(T) != 0) { | 14 | 26 | return 0; | 15 | 26 | } | 16 | 894 | return (64 - misalignment) / sizeof(T); | 17 | 920 | } |
|
18 | | |
19 | | #if SIMDUTF_FEATURE_UTF8 || SIMDUTF_FEATURE_DETECT_ENCODING |
20 | | template <typename T> |
21 | 93.9k | simdutf_really_inline size_t utf8_head(const T *p, size_t len) { |
22 | 93.9k | size_t h = head(p, len); |
23 | 93.9k | if (h != 0) { |
24 | 3.01k | for (int i = 0; i < 3 && h < len && (uint8_t(p[h]) & 0xC0) == 0x80; i++) { |
25 | 403 | h++; |
26 | 403 | } |
27 | 2.61k | } |
28 | 93.9k | return h; |
29 | 93.9k | } simdutf.cpp:unsigned long simdutf::haswell::(anonymous namespace)::aligned_split::utf8_head<char>(char const*, unsigned long) Line | Count | Source | 21 | 46.9k | simdutf_really_inline size_t utf8_head(const T *p, size_t len) { | 22 | 46.9k | size_t h = head(p, len); | 23 | 46.9k | if (h != 0) { | 24 | 1.43k | for (int i = 0; i < 3 && h < len && (uint8_t(p[h]) & 0xC0) == 0x80; i++) { | 25 | 163 | h++; | 26 | 163 | } | 27 | 1.27k | } | 28 | 46.9k | return h; | 29 | 46.9k | } |
simdutf.cpp:unsigned long simdutf::westmere::(anonymous namespace)::aligned_split::utf8_head<char>(char const*, unsigned long) Line | Count | Source | 21 | 47.0k | simdutf_really_inline size_t utf8_head(const T *p, size_t len) { | 22 | 47.0k | size_t h = head(p, len); | 23 | 47.0k | if (h != 0) { | 24 | 1.57k | for (int i = 0; i < 3 && h < len && (uint8_t(p[h]) & 0xC0) == 0x80; i++) { | 25 | 240 | h++; | 26 | 240 | } | 27 | 1.33k | } | 28 | 47.0k | return h; | 29 | 47.0k | } |
|
30 | | #endif // SIMDUTF_FEATURE_UTF8 || SIMDUTF_FEATURE_DETECT_ENCODING |
31 | | |
32 | | #if SIMDUTF_FEATURE_UTF16 || SIMDUTF_FEATURE_DETECT_ENCODING |
33 | | template <endianness big_endian> |
34 | 125k | simdutf_really_inline size_t utf16_head(const char16_t *p, size_t len) { |
35 | 125k | size_t h = head(p, len); |
36 | 125k | if (h != 0 && h < len && |
37 | 2.45k | scalar::utf16::is_high_surrogate<big_endian>(p[h - 1]) && |
38 | 263 | scalar::utf16::is_low_surrogate<big_endian>(p[h])) { |
39 | 83 | h++; |
40 | 83 | } |
41 | 125k | return h; |
42 | 125k | } Unexecuted instantiation: simdutf.cpp:unsigned long simdutf::icelake::(anonymous namespace)::aligned_split::utf16_head<(simdutf::endianness)0>(char16_t const*, unsigned long) Unexecuted instantiation: simdutf.cpp:unsigned long simdutf::icelake::(anonymous namespace)::aligned_split::utf16_head<(simdutf::endianness)1>(char16_t const*, unsigned long) simdutf.cpp:unsigned long simdutf::haswell::(anonymous namespace)::aligned_split::utf16_head<(simdutf::endianness)0>(char16_t const*, unsigned long) Line | Count | Source | 34 | 32.4k | simdutf_really_inline size_t utf16_head(const char16_t *p, size_t len) { | 35 | 32.4k | size_t h = head(p, len); | 36 | 32.4k | if (h != 0 && h < len && | 37 | 861 | scalar::utf16::is_high_surrogate<big_endian>(p[h - 1]) && | 38 | 113 | scalar::utf16::is_low_surrogate<big_endian>(p[h])) { | 39 | 31 | h++; | 40 | 31 | } | 41 | 32.4k | return h; | 42 | 32.4k | } |
simdutf.cpp:unsigned long simdutf::haswell::(anonymous namespace)::aligned_split::utf16_head<(simdutf::endianness)1>(char16_t const*, unsigned long) Line | Count | Source | 34 | 31.7k | simdutf_really_inline size_t utf16_head(const char16_t *p, size_t len) { | 35 | 31.7k | size_t h = head(p, len); | 36 | 31.7k | if (h != 0 && h < len && | 37 | 697 | scalar::utf16::is_high_surrogate<big_endian>(p[h - 1]) && | 38 | 104 | scalar::utf16::is_low_surrogate<big_endian>(p[h])) { | 39 | 30 | h++; | 40 | 30 | } | 41 | 31.7k | return h; | 42 | 31.7k | } |
simdutf.cpp:unsigned long simdutf::westmere::(anonymous namespace)::aligned_split::utf16_head<(simdutf::endianness)0>(char16_t const*, unsigned long) Line | Count | Source | 34 | 31.2k | simdutf_really_inline size_t utf16_head(const char16_t *p, size_t len) { | 35 | 31.2k | size_t h = head(p, len); | 36 | 31.2k | if (h != 0 && h < len && | 37 | 529 | scalar::utf16::is_high_surrogate<big_endian>(p[h - 1]) && | 38 | 41 | scalar::utf16::is_low_surrogate<big_endian>(p[h])) { | 39 | 17 | h++; | 40 | 17 | } | 41 | 31.2k | return h; | 42 | 31.2k | } |
simdutf.cpp:unsigned long simdutf::westmere::(anonymous namespace)::aligned_split::utf16_head<(simdutf::endianness)1>(char16_t const*, unsigned long) Line | Count | Source | 34 | 30.5k | simdutf_really_inline size_t utf16_head(const char16_t *p, size_t len) { | 35 | 30.5k | size_t h = head(p, len); | 36 | 30.5k | if (h != 0 && h < len && | 37 | 365 | scalar::utf16::is_high_surrogate<big_endian>(p[h - 1]) && | 38 | 5 | scalar::utf16::is_low_surrogate<big_endian>(p[h])) { | 39 | 5 | h++; | 40 | 5 | } | 41 | 30.5k | return h; | 42 | 30.5k | } |
|
43 | | #endif // SIMDUTF_FEATURE_UTF16 || SIMDUTF_FEATURE_DETECT_ENCODING |
44 | | |
45 | | template <auto F, typename... Args> |
46 | 7.89k | simdutf_never_inline auto out_of_line(Args... args) noexcept { |
47 | 7.89k | return F(args...); |
48 | 7.89k | } Unexecuted instantiation: simdutf.cpp:_ZN7simdutf7icelake12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_30to_well_formed_utf16le_unsplitEPKDsmPDsEEJS5_mS6_EEEDaDpT0_ Unexecuted instantiation: simdutf.cpp:_ZN7simdutf7icelake12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_30to_well_formed_utf16be_unsplitEPKDsmPDsEEJS5_mS6_EEEDaDpT0_ Unexecuted instantiation: simdutf.cpp:_ZN7simdutf7icelake12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_21count_utf16le_unsplitEPKDsmEEJS5_mEEEDaDpT0_ Unexecuted instantiation: simdutf.cpp:_ZN7simdutf7icelake12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_21count_utf16be_unsplitEPKDsmEEJS5_mEEEDaDpT0_ Unexecuted instantiation: simdutf.cpp:_ZN7simdutf7icelake12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_32utf8_length_from_utf16le_unsplitEPKDsmEEJS5_mEEEDaDpT0_ Unexecuted instantiation: simdutf.cpp:_ZN7simdutf7icelake12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_32utf8_length_from_utf16be_unsplitEPKDsmEEJS5_mEEEDaDpT0_ Unexecuted instantiation: simdutf.cpp:_ZN7simdutf7icelake12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_31utf8_length_from_latin1_unsplitEPKcmEEJS5_mEEEDaDpT0_ Unexecuted instantiation: simdutf.cpp:_ZN7simdutf7icelake12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_30utf16_length_from_utf8_unsplitEPKcmEEJS5_mEEEDaDpT0_ Unexecuted instantiation: simdutf.cpp:_ZN7simdutf7icelake12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_49utf8_length_from_utf16le_with_replacement_unsplitEPKDsmEEJS5_mEEEDaDpT0_ Unexecuted instantiation: simdutf.cpp:_ZN7simdutf7icelake12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_49utf8_length_from_utf16be_with_replacement_unsplitEPKDsmEEJS5_mEEEDaDpT0_ Unexecuted instantiation: simdutf.cpp:_ZN7simdutf7icelake12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_31utf16_length_from_utf32_unsplitEPKDimEEJS5_mEEEDaDpT0_ simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_21validate_utf8_unsplitEPKcmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 789 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 789 | return F(args...); | 48 | 789 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_33validate_utf8_with_errors_unsplitEPKcmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 484 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 484 | return F(args...); | 48 | 484 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_22validate_ascii_unsplitEPKcmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 20 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 20 | return F(args...); | 48 | 20 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_34validate_ascii_with_errors_unsplitEPKcmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 29 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 29 | return F(args...); | 48 | 29 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_33validate_utf16le_as_ascii_unsplitEPKDsmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 42 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 42 | return F(args...); | 48 | 42 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_33validate_utf16be_as_ascii_unsplitEPKDsmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 42 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 42 | return F(args...); | 48 | 42 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_24validate_utf16le_unsplitEPKDsmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 597 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 597 | return F(args...); | 48 | 597 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_24validate_utf16be_unsplitEPKDsmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 429 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 429 | return F(args...); | 48 | 429 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_36validate_utf16le_with_errors_unsplitEPKDsmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 104 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 104 | return F(args...); | 48 | 104 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_36validate_utf16be_with_errors_unsplitEPKDsmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 108 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 108 | return F(args...); | 48 | 108 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_30to_well_formed_utf16le_unsplitEPKDsmPDsEEJS5_mS6_EEEDaDpT0_ Line | Count | Source | 46 | 160 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 160 | return F(args...); | 48 | 160 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_30to_well_formed_utf16be_unsplitEPKDsmPDsEEJS5_mS6_EEEDaDpT0_ Line | Count | Source | 46 | 160 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 160 | return F(args...); | 48 | 160 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_22validate_utf32_unsplitEPKDimEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 189 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 189 | return F(args...); | 48 | 189 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_21count_utf16le_unsplitEPKDsmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 104 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 104 | return F(args...); | 48 | 104 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_21count_utf16be_unsplitEPKDsmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 108 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 108 | return F(args...); | 48 | 108 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_18count_utf8_unsplitEPKcmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 560 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 560 | return F(args...); | 48 | 560 | } |
Unexecuted instantiation: simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_33validate_utf8_with_counts_unsplitEPKcmEEJS5_mEEEDaDpT0_ simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_32utf8_length_from_utf16le_unsplitEPKDsmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 181 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 181 | return F(args...); | 48 | 181 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_32utf8_length_from_utf16be_unsplitEPKDsmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 100 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 100 | return F(args...); | 48 | 100 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_33utf32_length_from_utf16le_unsplitEPKDsmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 33 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 33 | return F(args...); | 48 | 33 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_33utf32_length_from_utf16be_unsplitEPKDsmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 36 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 36 | return F(args...); | 48 | 36 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_30utf16_length_from_utf8_unsplitEPKcmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 274 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 274 | return F(args...); | 48 | 274 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_31utf8_length_from_latin1_unsplitEPKcmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 96 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 96 | return F(args...); | 48 | 96 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_30utf8_length_from_utf32_unsplitEPKDimEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 16 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 16 | return F(args...); | 48 | 16 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_31utf16_length_from_utf32_unsplitEPKDimEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 26 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 26 | return F(args...); | 48 | 26 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_30utf32_length_from_utf8_unsplitEPKcmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 134 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 134 | return F(args...); | 48 | 134 | } |
simdutf.cpp:_ZN7simdutf8westmere12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_21validate_utf8_unsplitEPKcmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 853 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 853 | return F(args...); | 48 | 853 | } |
simdutf.cpp:_ZN7simdutf8westmere12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_33validate_utf8_with_errors_unsplitEPKcmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 484 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 484 | return F(args...); | 48 | 484 | } |
simdutf.cpp:_ZN7simdutf8westmere12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_22validate_ascii_unsplitEPKcmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 20 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 20 | return F(args...); | 48 | 20 | } |
simdutf.cpp:_ZN7simdutf8westmere12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_34validate_ascii_with_errors_unsplitEPKcmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 29 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 29 | return F(args...); | 48 | 29 | } |
simdutf.cpp:_ZN7simdutf8westmere12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_24validate_utf16le_unsplitEPKDsmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 425 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 425 | return F(args...); | 48 | 425 | } |
simdutf.cpp:_ZN7simdutf8westmere12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_24validate_utf16be_unsplitEPKDsmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 257 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 257 | return F(args...); | 48 | 257 | } |
simdutf.cpp:_ZN7simdutf8westmere12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_36validate_utf16le_with_errors_unsplitEPKDsmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 104 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 104 | return F(args...); | 48 | 104 | } |
simdutf.cpp:_ZN7simdutf8westmere12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_36validate_utf16be_with_errors_unsplitEPKDsmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 108 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 108 | return F(args...); | 48 | 108 | } |
simdutf.cpp:_ZN7simdutf8westmere12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_18count_utf8_unsplitEPKcmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 560 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 560 | return F(args...); | 48 | 560 | } |
Unexecuted instantiation: simdutf.cpp:_ZN7simdutf8westmere12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_33validate_utf8_with_counts_unsplitEPKcmEEJS5_mEEEDaDpT0_ simdutf.cpp:_ZN7simdutf8westmere12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_31utf8_length_from_latin1_unsplitEPKcmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 97 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 97 | return F(args...); | 48 | 97 | } |
simdutf.cpp:_ZN7simdutf8westmere12_GLOBAL__N_113aligned_split11out_of_lineITnDaXadL_ZNS0_30utf32_length_from_utf8_unsplitEPKcmEEJS5_mEEEDaDpT0_ Line | Count | Source | 46 | 134 | simdutf_never_inline auto out_of_line(Args... args) noexcept { | 47 | 134 | return F(args...); | 48 | 134 | } |
|
49 | | |
50 | | template <auto F, typename T> |
51 | 140k | simdutf_really_inline size_t sum(const T *p, size_t len, size_t h) { |
52 | 140k | const size_t first = h == 0 ? 0 : out_of_line<F>(p, h); |
53 | 140k | return first + F(p + h, len - h); |
54 | 140k | } Unexecuted instantiation: simdutf.cpp:_ZN7simdutf7icelake12_GLOBAL__N_113aligned_split3sumITnDaXadL_ZNS0_21count_utf16le_unsplitEPKDsmEEDsEEmPKT0_mm Unexecuted instantiation: simdutf.cpp:_ZN7simdutf7icelake12_GLOBAL__N_113aligned_split3sumITnDaXadL_ZNS0_21count_utf16be_unsplitEPKDsmEEDsEEmPKT0_mm Unexecuted instantiation: simdutf.cpp:_ZN7simdutf7icelake12_GLOBAL__N_113aligned_split3sumITnDaXadL_ZNS0_32utf8_length_from_utf16le_unsplitEPKDsmEEDsEEmPKT0_mm Unexecuted instantiation: simdutf.cpp:_ZN7simdutf7icelake12_GLOBAL__N_113aligned_split3sumITnDaXadL_ZNS0_32utf8_length_from_utf16be_unsplitEPKDsmEEDsEEmPKT0_mm Unexecuted instantiation: simdutf.cpp:_ZN7simdutf7icelake12_GLOBAL__N_113aligned_split3sumITnDaXadL_ZNS0_31utf8_length_from_latin1_unsplitEPKcmEEcEEmPKT0_mm Unexecuted instantiation: simdutf.cpp:_ZN7simdutf7icelake12_GLOBAL__N_113aligned_split3sumITnDaXadL_ZNS0_30utf16_length_from_utf8_unsplitEPKcmEEcEEmPKT0_mm Unexecuted instantiation: simdutf.cpp:_ZN7simdutf7icelake12_GLOBAL__N_113aligned_split3sumITnDaXadL_ZNS0_31utf16_length_from_utf32_unsplitEPKDimEEDiEEmPKT0_mm simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split3sumITnDaXadL_ZNS0_21count_utf16le_unsplitEPKDsmEEDsEEmPKT0_mm Line | Count | Source | 51 | 1.28k | simdutf_really_inline size_t sum(const T *p, size_t len, size_t h) { | 52 | 1.28k | const size_t first = h == 0 ? 0 : out_of_line<F>(p, h); | 53 | 1.28k | return first + F(p + h, len - h); | 54 | 1.28k | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split3sumITnDaXadL_ZNS0_21count_utf16be_unsplitEPKDsmEEDsEEmPKT0_mm Line | Count | Source | 51 | 1.26k | simdutf_really_inline size_t sum(const T *p, size_t len, size_t h) { | 52 | 1.26k | const size_t first = h == 0 ? 0 : out_of_line<F>(p, h); | 53 | 1.26k | return first + F(p + h, len - h); | 54 | 1.26k | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split3sumITnDaXadL_ZNS0_18count_utf8_unsplitEPKcmEEcEEmPKT0_mm Line | Count | Source | 51 | 19.0k | simdutf_really_inline size_t sum(const T *p, size_t len, size_t h) { | 52 | 19.0k | const size_t first = h == 0 ? 0 : out_of_line<F>(p, h); | 53 | 19.0k | return first + F(p + h, len - h); | 54 | 19.0k | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split3sumITnDaXadL_ZNS0_32utf8_length_from_utf16le_unsplitEPKDsmEEDsEEmPKT0_mm Line | Count | Source | 51 | 14.7k | simdutf_really_inline size_t sum(const T *p, size_t len, size_t h) { | 52 | 14.7k | const size_t first = h == 0 ? 0 : out_of_line<F>(p, h); | 53 | 14.7k | return first + F(p + h, len - h); | 54 | 14.7k | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split3sumITnDaXadL_ZNS0_32utf8_length_from_utf16be_unsplitEPKDsmEEDsEEmPKT0_mm Line | Count | Source | 51 | 14.2k | simdutf_really_inline size_t sum(const T *p, size_t len, size_t h) { | 52 | 14.2k | const size_t first = h == 0 ? 0 : out_of_line<F>(p, h); | 53 | 14.2k | return first + F(p + h, len - h); | 54 | 14.2k | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split3sumITnDaXadL_ZNS0_33utf32_length_from_utf16le_unsplitEPKDsmEEDsEEmPKT0_mm Line | Count | Source | 51 | 394 | simdutf_really_inline size_t sum(const T *p, size_t len, size_t h) { | 52 | 394 | const size_t first = h == 0 ? 0 : out_of_line<F>(p, h); | 53 | 394 | return first + F(p + h, len - h); | 54 | 394 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split3sumITnDaXadL_ZNS0_33utf32_length_from_utf16be_unsplitEPKDsmEEDsEEmPKT0_mm Line | Count | Source | 51 | 415 | simdutf_really_inline size_t sum(const T *p, size_t len, size_t h) { | 52 | 415 | const size_t first = h == 0 ? 0 : out_of_line<F>(p, h); | 53 | 415 | return first + F(p + h, len - h); | 54 | 415 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split3sumITnDaXadL_ZNS0_30utf16_length_from_utf8_unsplitEPKcmEEcEEmPKT0_mm Line | Count | Source | 51 | 29.9k | simdutf_really_inline size_t sum(const T *p, size_t len, size_t h) { | 52 | 29.9k | const size_t first = h == 0 ? 0 : out_of_line<F>(p, h); | 53 | 29.9k | return first + F(p + h, len - h); | 54 | 29.9k | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split3sumITnDaXadL_ZNS0_31utf8_length_from_latin1_unsplitEPKcmEEcEEmPKT0_mm Line | Count | Source | 51 | 7.82k | simdutf_really_inline size_t sum(const T *p, size_t len, size_t h) { | 52 | 7.82k | const size_t first = h == 0 ? 0 : out_of_line<F>(p, h); | 53 | 7.82k | return first + F(p + h, len - h); | 54 | 7.82k | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split3sumITnDaXadL_ZNS0_30utf8_length_from_utf32_unsplitEPKDimEEDiEEmPKT0_mm Line | Count | Source | 51 | 6.95k | simdutf_really_inline size_t sum(const T *p, size_t len, size_t h) { | 52 | 6.95k | const size_t first = h == 0 ? 0 : out_of_line<F>(p, h); | 53 | 6.95k | return first + F(p + h, len - h); | 54 | 6.95k | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split3sumITnDaXadL_ZNS0_31utf16_length_from_utf32_unsplitEPKDimEEDiEEmPKT0_mm Line | Count | Source | 51 | 1.15k | simdutf_really_inline size_t sum(const T *p, size_t len, size_t h) { | 52 | 1.15k | const size_t first = h == 0 ? 0 : out_of_line<F>(p, h); | 53 | 1.15k | return first + F(p + h, len - h); | 54 | 1.15k | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split3sumITnDaXadL_ZNS0_30utf32_length_from_utf8_unsplitEPKcmEEcEEmPKT0_mm Line | Count | Source | 51 | 8.18k | simdutf_really_inline size_t sum(const T *p, size_t len, size_t h) { | 52 | 8.18k | const size_t first = h == 0 ? 0 : out_of_line<F>(p, h); | 53 | 8.18k | return first + F(p + h, len - h); | 54 | 8.18k | } |
simdutf.cpp:_ZN7simdutf8westmere12_GLOBAL__N_113aligned_split3sumITnDaXadL_ZNS0_18count_utf8_unsplitEPKcmEEcEEmPKT0_mm Line | Count | Source | 51 | 19.0k | simdutf_really_inline size_t sum(const T *p, size_t len, size_t h) { | 52 | 19.0k | const size_t first = h == 0 ? 0 : out_of_line<F>(p, h); | 53 | 19.0k | return first + F(p + h, len - h); | 54 | 19.0k | } |
simdutf.cpp:_ZN7simdutf8westmere12_GLOBAL__N_113aligned_split3sumITnDaXadL_ZNS0_31utf8_length_from_latin1_unsplitEPKcmEEcEEmPKT0_mm Line | Count | Source | 51 | 7.86k | simdutf_really_inline size_t sum(const T *p, size_t len, size_t h) { | 52 | 7.86k | const size_t first = h == 0 ? 0 : out_of_line<F>(p, h); | 53 | 7.86k | return first + F(p + h, len - h); | 54 | 7.86k | } |
simdutf.cpp:_ZN7simdutf8westmere12_GLOBAL__N_113aligned_split3sumITnDaXadL_ZNS0_30utf32_length_from_utf8_unsplitEPKcmEEcEEmPKT0_mm Line | Count | Source | 51 | 8.18k | simdutf_really_inline size_t sum(const T *p, size_t len, size_t h) { | 52 | 8.18k | const size_t first = h == 0 ? 0 : out_of_line<F>(p, h); | 53 | 8.18k | return first + F(p + h, len - h); | 54 | 8.18k | } |
|
55 | | |
56 | | template <auto F, typename T> |
57 | 179k | simdutf_really_inline bool all(const T *p, size_t len, size_t h) { |
58 | 179k | if (h != 0 && !out_of_line<F>(p, h)) { |
59 | 1.04k | return false; |
60 | 1.04k | } |
61 | 178k | return F(p + h, len - h); |
62 | 179k | } simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split3allITnDaXadL_ZNS0_21validate_utf8_unsplitEPKcmEEcEEbPKT0_mm Line | Count | Source | 57 | 35.5k | simdutf_really_inline bool all(const T *p, size_t len, size_t h) { | 58 | 35.5k | if (h != 0 && !out_of_line<F>(p, h)) { | 59 | 185 | return false; | 60 | 185 | } | 61 | 35.3k | return F(p + h, len - h); | 62 | 35.5k | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split3allITnDaXadL_ZNS0_22validate_ascii_unsplitEPKcmEEcEEbPKT0_mm Line | Count | Source | 57 | 192 | simdutf_really_inline bool all(const T *p, size_t len, size_t h) { | 58 | 192 | if (h != 0 && !out_of_line<F>(p, h)) { | 59 | 5 | return false; | 60 | 5 | } | 61 | 187 | return F(p + h, len - h); | 62 | 192 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split3allITnDaXadL_ZNS0_33validate_utf16le_as_ascii_unsplitEPKDsmEEDsEEbPKT0_mm Line | Count | Source | 57 | 244 | simdutf_really_inline bool all(const T *p, size_t len, size_t h) { | 58 | 244 | if (h != 0 && !out_of_line<F>(p, h)) { | 59 | 28 | return false; | 60 | 28 | } | 61 | 216 | return F(p + h, len - h); | 62 | 244 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split3allITnDaXadL_ZNS0_33validate_utf16be_as_ascii_unsplitEPKDsmEEDsEEbPKT0_mm Line | Count | Source | 57 | 244 | simdutf_really_inline bool all(const T *p, size_t len, size_t h) { | 58 | 244 | if (h != 0 && !out_of_line<F>(p, h)) { | 59 | 25 | return false; | 60 | 25 | } | 61 | 219 | return F(p + h, len - h); | 62 | 244 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split3allITnDaXadL_ZNS0_24validate_utf16le_unsplitEPKDsmEEDsEEbPKT0_mm Line | Count | Source | 57 | 23.5k | simdutf_really_inline bool all(const T *p, size_t len, size_t h) { | 58 | 23.5k | if (h != 0 && !out_of_line<F>(p, h)) { | 59 | 229 | return false; | 60 | 229 | } | 61 | 23.2k | return F(p + h, len - h); | 62 | 23.5k | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split3allITnDaXadL_ZNS0_24validate_utf16be_unsplitEPKDsmEEDsEEbPKT0_mm Line | Count | Source | 57 | 22.8k | simdutf_really_inline bool all(const T *p, size_t len, size_t h) { | 58 | 22.8k | if (h != 0 && !out_of_line<F>(p, h)) { | 59 | 128 | return false; | 60 | 128 | } | 61 | 22.7k | return F(p + h, len - h); | 62 | 22.8k | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split3allITnDaXadL_ZNS0_22validate_utf32_unsplitEPKDimEEDiEEbPKT0_mm Line | Count | Source | 57 | 15.7k | simdutf_really_inline bool all(const T *p, size_t len, size_t h) { | 58 | 15.7k | if (h != 0 && !out_of_line<F>(p, h)) { | 59 | 134 | return false; | 60 | 134 | } | 61 | 15.6k | return F(p + h, len - h); | 62 | 15.7k | } |
simdutf.cpp:_ZN7simdutf8westmere12_GLOBAL__N_113aligned_split3allITnDaXadL_ZNS0_21validate_utf8_unsplitEPKcmEEcEEbPKT0_mm Line | Count | Source | 57 | 35.6k | simdutf_really_inline bool all(const T *p, size_t len, size_t h) { | 58 | 35.6k | if (h != 0 && !out_of_line<F>(p, h)) { | 59 | 185 | return false; | 60 | 185 | } | 61 | 35.4k | return F(p + h, len - h); | 62 | 35.6k | } |
simdutf.cpp:_ZN7simdutf8westmere12_GLOBAL__N_113aligned_split3allITnDaXadL_ZNS0_22validate_ascii_unsplitEPKcmEEcEEbPKT0_mm Line | Count | Source | 57 | 192 | simdutf_really_inline bool all(const T *p, size_t len, size_t h) { | 58 | 192 | if (h != 0 && !out_of_line<F>(p, h)) { | 59 | 5 | return false; | 60 | 5 | } | 61 | 187 | return F(p + h, len - h); | 62 | 192 | } |
simdutf.cpp:_ZN7simdutf8westmere12_GLOBAL__N_113aligned_split3allITnDaXadL_ZNS0_24validate_utf16le_unsplitEPKDsmEEDsEEbPKT0_mm Line | Count | Source | 57 | 22.9k | simdutf_really_inline bool all(const T *p, size_t len, size_t h) { | 58 | 22.9k | if (h != 0 && !out_of_line<F>(p, h)) { | 59 | 106 | return false; | 60 | 106 | } | 61 | 22.8k | return F(p + h, len - h); | 62 | 22.9k | } |
simdutf.cpp:_ZN7simdutf8westmere12_GLOBAL__N_113aligned_split3allITnDaXadL_ZNS0_24validate_utf16be_unsplitEPKDsmEEDsEEbPKT0_mm Line | Count | Source | 57 | 22.3k | simdutf_really_inline bool all(const T *p, size_t len, size_t h) { | 58 | 22.3k | if (h != 0 && !out_of_line<F>(p, h)) { | 59 | 11 | return false; | 60 | 11 | } | 61 | 22.2k | return F(p + h, len - h); | 62 | 22.3k | } |
|
63 | | |
64 | | template <auto F, typename T> |
65 | 56.1k | simdutf_really_inline result first_error(const T *p, size_t len, size_t h) { |
66 | 56.1k | if (h != 0) { |
67 | 1.45k | const result first = out_of_line<F>(p, h); |
68 | 1.45k | if (first.error != error_code::SUCCESS) { |
69 | 118 | return first; |
70 | 118 | } |
71 | 1.45k | } |
72 | 56.0k | result r = F(p + h, len - h); |
73 | 56.0k | r.count += h; |
74 | 56.0k | return r; |
75 | 56.1k | } simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11first_errorITnDaXadL_ZNS0_33validate_utf8_with_errors_unsplitEPKcmEEcEENS_6resultEPKT0_mm Line | Count | Source | 65 | 11.3k | simdutf_really_inline result first_error(const T *p, size_t len, size_t h) { | 66 | 11.3k | if (h != 0) { | 67 | 484 | const result first = out_of_line<F>(p, h); | 68 | 484 | if (first.error != error_code::SUCCESS) { | 69 | 31 | return first; | 70 | 31 | } | 71 | 484 | } | 72 | 11.3k | result r = F(p + h, len - h); | 73 | 11.3k | r.count += h; | 74 | 11.3k | return r; | 75 | 11.3k | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11first_errorITnDaXadL_ZNS0_34validate_ascii_with_errors_unsplitEPKcmEEcEENS_6resultEPKT0_mm Line | Count | Source | 65 | 286 | simdutf_really_inline result first_error(const T *p, size_t len, size_t h) { | 66 | 286 | if (h != 0) { | 67 | 29 | const result first = out_of_line<F>(p, h); | 68 | 29 | if (first.error != error_code::SUCCESS) { | 69 | 5 | return first; | 70 | 5 | } | 71 | 29 | } | 72 | 281 | result r = F(p + h, len - h); | 73 | 281 | r.count += h; | 74 | 281 | return r; | 75 | 286 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11first_errorITnDaXadL_ZNS0_36validate_utf16le_with_errors_unsplitEPKDsmEEDsEENS_6resultEPKT0_mm Line | Count | Source | 65 | 8.21k | simdutf_really_inline result first_error(const T *p, size_t len, size_t h) { | 66 | 8.21k | if (h != 0) { | 67 | 104 | const result first = out_of_line<F>(p, h); | 68 | 104 | if (first.error != error_code::SUCCESS) { | 69 | 12 | return first; | 70 | 12 | } | 71 | 104 | } | 72 | 8.20k | result r = F(p + h, len - h); | 73 | 8.20k | r.count += h; | 74 | 8.20k | return r; | 75 | 8.21k | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11first_errorITnDaXadL_ZNS0_36validate_utf16be_with_errors_unsplitEPKDsmEEDsEENS_6resultEPKT0_mm Line | Count | Source | 65 | 8.19k | simdutf_really_inline result first_error(const T *p, size_t len, size_t h) { | 66 | 8.19k | if (h != 0) { | 67 | 108 | const result first = out_of_line<F>(p, h); | 68 | 108 | if (first.error != error_code::SUCCESS) { | 69 | 11 | return first; | 70 | 11 | } | 71 | 108 | } | 72 | 8.18k | result r = F(p + h, len - h); | 73 | 8.18k | r.count += h; | 74 | 8.18k | return r; | 75 | 8.19k | } |
simdutf.cpp:_ZN7simdutf8westmere12_GLOBAL__N_113aligned_split11first_errorITnDaXadL_ZNS0_33validate_utf8_with_errors_unsplitEPKcmEEcEENS_6resultEPKT0_mm Line | Count | Source | 65 | 11.3k | simdutf_really_inline result first_error(const T *p, size_t len, size_t h) { | 66 | 11.3k | if (h != 0) { | 67 | 484 | const result first = out_of_line<F>(p, h); | 68 | 484 | if (first.error != error_code::SUCCESS) { | 69 | 31 | return first; | 70 | 31 | } | 71 | 484 | } | 72 | 11.3k | result r = F(p + h, len - h); | 73 | 11.3k | r.count += h; | 74 | 11.3k | return r; | 75 | 11.3k | } |
simdutf.cpp:_ZN7simdutf8westmere12_GLOBAL__N_113aligned_split11first_errorITnDaXadL_ZNS0_34validate_ascii_with_errors_unsplitEPKcmEEcEENS_6resultEPKT0_mm Line | Count | Source | 65 | 286 | simdutf_really_inline result first_error(const T *p, size_t len, size_t h) { | 66 | 286 | if (h != 0) { | 67 | 29 | const result first = out_of_line<F>(p, h); | 68 | 29 | if (first.error != error_code::SUCCESS) { | 69 | 5 | return first; | 70 | 5 | } | 71 | 29 | } | 72 | 281 | result r = F(p + h, len - h); | 73 | 281 | r.count += h; | 74 | 281 | return r; | 75 | 286 | } |
simdutf.cpp:_ZN7simdutf8westmere12_GLOBAL__N_113aligned_split11first_errorITnDaXadL_ZNS0_36validate_utf16le_with_errors_unsplitEPKDsmEEDsEENS_6resultEPKT0_mm Line | Count | Source | 65 | 8.21k | simdutf_really_inline result first_error(const T *p, size_t len, size_t h) { | 66 | 8.21k | if (h != 0) { | 67 | 104 | const result first = out_of_line<F>(p, h); | 68 | 104 | if (first.error != error_code::SUCCESS) { | 69 | 12 | return first; | 70 | 12 | } | 71 | 104 | } | 72 | 8.20k | result r = F(p + h, len - h); | 73 | 8.20k | r.count += h; | 74 | 8.20k | return r; | 75 | 8.21k | } |
simdutf.cpp:_ZN7simdutf8westmere12_GLOBAL__N_113aligned_split11first_errorITnDaXadL_ZNS0_36validate_utf16be_with_errors_unsplitEPKDsmEEDsEENS_6resultEPKT0_mm Line | Count | Source | 65 | 8.19k | simdutf_really_inline result first_error(const T *p, size_t len, size_t h) { | 66 | 8.19k | if (h != 0) { | 67 | 108 | const result first = out_of_line<F>(p, h); | 68 | 108 | if (first.error != error_code::SUCCESS) { | 69 | 11 | return first; | 70 | 11 | } | 71 | 108 | } | 72 | 8.18k | result r = F(p + h, len - h); | 73 | 8.18k | r.count += h; | 74 | 8.18k | return r; | 75 | 8.19k | } |
|
76 | | |
77 | | #if SIMDUTF_FEATURE_UTF8 |
78 | | template <auto F> |
79 | | simdutf_really_inline utf8_result with_counts(const char *p, size_t len, |
80 | 0 | size_t h) { |
81 | 0 | utf8_result first; |
82 | 0 | if (h != 0) { |
83 | 0 | first = out_of_line<F>(p, h); |
84 | 0 | if (first.error != error_code::SUCCESS) { |
85 | 0 | return first; |
86 | 0 | } |
87 | 0 | } |
88 | 0 | utf8_result r = F(p + h, len - h); |
89 | 0 | r.input_count += h; |
90 | 0 | r.continuation_count += first.continuation_count; |
91 | 0 | r.four_byte_count += first.four_byte_count; |
92 | 0 | return r; |
93 | 0 | } Unexecuted instantiation: simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split11with_countsITnDaXadL_ZNS0_33validate_utf8_with_counts_unsplitEPKcmEEEENS_11utf8_resultES5_mm Unexecuted instantiation: simdutf.cpp:_ZN7simdutf8westmere12_GLOBAL__N_113aligned_split11with_countsITnDaXadL_ZNS0_33validate_utf8_with_counts_unsplitEPKcmEEEENS_11utf8_resultES5_mm |
94 | | #endif // SIMDUTF_FEATURE_UTF8 |
95 | | |
96 | | #if SIMDUTF_FEATURE_UTF16 |
97 | | template <auto F> |
98 | | simdutf_really_inline result count_with_flag(const char16_t *p, size_t len, |
99 | 0 | size_t h) { |
100 | 0 | result first; |
101 | 0 | if (h != 0) { |
102 | 0 | first = out_of_line<F>(p, h); |
103 | 0 | } |
104 | 0 | result r = F(p + h, len - h); |
105 | 0 | r.count += first.count; |
106 | 0 | if (first.error != error_code::SUCCESS) { |
107 | 0 | r.error = first.error; |
108 | 0 | } |
109 | 0 | return r; |
110 | 0 | } Unexecuted instantiation: simdutf.cpp:_ZN7simdutf7icelake12_GLOBAL__N_113aligned_split15count_with_flagITnDaXadL_ZNS0_49utf8_length_from_utf16le_with_replacement_unsplitEPKDsmEEEENS_6resultES5_mm Unexecuted instantiation: simdutf.cpp:_ZN7simdutf7icelake12_GLOBAL__N_113aligned_split15count_with_flagITnDaXadL_ZNS0_49utf8_length_from_utf16be_with_replacement_unsplitEPKDsmEEEENS_6resultES5_mm |
111 | | |
112 | | template <auto F> |
113 | | simdutf_really_inline void transform(const char16_t *in, size_t len, |
114 | 1.52k | char16_t *out, size_t h) { |
115 | 1.52k | if (h != 0) { |
116 | 320 | out_of_line<F>(in, h, out); |
117 | 320 | } |
118 | 1.52k | F(in + h, len - h, out + h); |
119 | 1.52k | } Unexecuted instantiation: simdutf.cpp:_ZN7simdutf7icelake12_GLOBAL__N_113aligned_split9transformITnDaXadL_ZNS0_30to_well_formed_utf16le_unsplitEPKDsmPDsEEEEvS5_mS6_m Unexecuted instantiation: simdutf.cpp:_ZN7simdutf7icelake12_GLOBAL__N_113aligned_split9transformITnDaXadL_ZNS0_30to_well_formed_utf16be_unsplitEPKDsmPDsEEEEvS5_mS6_m simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split9transformITnDaXadL_ZNS0_30to_well_formed_utf16le_unsplitEPKDsmPDsEEEEvS5_mS6_m Line | Count | Source | 114 | 760 | char16_t *out, size_t h) { | 115 | 760 | if (h != 0) { | 116 | 160 | out_of_line<F>(in, h, out); | 117 | 160 | } | 118 | 760 | F(in + h, len - h, out + h); | 119 | 760 | } |
simdutf.cpp:_ZN7simdutf7haswell12_GLOBAL__N_113aligned_split9transformITnDaXadL_ZNS0_30to_well_formed_utf16be_unsplitEPKDsmPDsEEEEvS5_mS6_m Line | Count | Source | 114 | 760 | char16_t *out, size_t h) { | 115 | 760 | if (h != 0) { | 116 | 160 | out_of_line<F>(in, h, out); | 117 | 160 | } | 118 | 760 | F(in + h, len - h, out + h); | 119 | 760 | } |
|
120 | | #endif // SIMDUTF_FEATURE_UTF16 |
121 | | |
122 | | } // namespace aligned_split |
123 | | } // unnamed namespace |
124 | | } // namespace SIMDUTF_IMPLEMENTATION |
125 | | } // namespace simdutf |