MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / sz_lookup

Function sz_lookup

include/stringzilla/memory.h:1472–1484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1470}
1471
1472SZ_DYNAMIC void sz_lookup(sz_ptr_t target, sz_size_t length, sz_cptr_t source, char const lut[sz_at_least_(256)]) {
1473#if SZ_USE_ICE
1474 sz_lookup_ice(target, length, source, lut);
1475#elif SZ_USE_HASWELL
1476 sz_lookup_haswell(target, length, source, lut);
1477#elif SZ_USE_SVE && SZ_ENFORCE_SVE_OVER_NEON
1478 sz_lookup_sve(target, length, source, lut);
1479#elif SZ_USE_NEON
1480 sz_lookup_neon(target, length, source, lut);
1481#else
1482 sz_lookup_serial(target, length, source, lut);
1483#endif
1484}
1485
1486#endif // !SZ_DYNAMIC_DISPATCH
1487#pragma endregion // Compile Time Dispatching

Callers 2

lookupMethod · 0.70
lookupFunction · 0.70

Calls 5

sz_lookup_iceFunction · 0.85
sz_lookup_haswellFunction · 0.85
sz_lookup_sveFunction · 0.85
sz_lookup_neonFunction · 0.85
sz_lookup_serialFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…