| 2051 | } |
| 2052 | |
| 2053 | SZ_DYNAMIC sz_cptr_t sz_find(sz_cptr_t haystack, sz_size_t h_length, sz_cptr_t needle, sz_size_t n_length) { |
| 2054 | #if SZ_USE_SKYLAKE |
| 2055 | return sz_find_skylake(haystack, h_length, needle, n_length); |
| 2056 | #elif SZ_USE_HASWELL |
| 2057 | return sz_find_haswell(haystack, h_length, needle, n_length); |
| 2058 | #elif SZ_USE_WESTMERE |
| 2059 | return sz_find_westmere(haystack, h_length, needle, n_length); |
| 2060 | #elif SZ_USE_SVE && SZ_ENFORCE_SVE_OVER_NEON |
| 2061 | return sz_find_sve(haystack, h_length, needle, n_length); |
| 2062 | #elif SZ_USE_NEON |
| 2063 | return sz_find_neon(haystack, h_length, needle, n_length); |
| 2064 | #else |
| 2065 | return sz_find_serial(haystack, h_length, needle, n_length); |
| 2066 | #endif |
| 2067 | } |
| 2068 | |
| 2069 | SZ_DYNAMIC sz_cptr_t sz_rfind(sz_cptr_t haystack, sz_size_t h_length, sz_cptr_t needle, sz_size_t n_length) { |
| 2070 | #if SZ_USE_SKYLAKE |
no test coverage detected
searching dependent graphs…