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

Function sz_copy

include/stringzilla/memory.h:1430–1442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1428#pragma region Core Functionality
1429
1430SZ_DYNAMIC void sz_copy(sz_ptr_t target, sz_cptr_t source, sz_size_t length) {
1431#if SZ_USE_SKYLAKE
1432 sz_copy_skylake(target, source, length);
1433#elif SZ_USE_HASWELL
1434 sz_copy_haswell(target, source, length);
1435#elif SZ_USE_SVE && SZ_ENFORCE_SVE_OVER_NEON
1436 sz_copy_sve(target, source, length);
1437#elif SZ_USE_NEON
1438 sz_copy_neon(target, source, length);
1439#else
1440 sz_copy_serial(target, source, length);
1441#endif
1442}
1443
1444SZ_DYNAMIC void sz_move(sz_ptr_t target, sz_cptr_t source, sz_size_t length) {
1445#if SZ_USE_SKYLAKE

Callers 9

memcpyFunction · 0.70
copyMethod · 0.70
initMethod · 0.70
try_insertMethod · 0.70
try_replaceMethod · 0.70
basic_stringClass · 0.70
try_appendMethod · 0.70
sz_string_reserveFunction · 0.70
sz_string_shrink_to_fitFunction · 0.70

Calls 5

sz_copy_skylakeFunction · 0.85
sz_copy_haswellFunction · 0.85
sz_copy_neonFunction · 0.85
sz_copy_serialFunction · 0.85
sz_copy_sveFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…