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

Function sz_fill_neon

include/stringzilla/memory.h:1136–1147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1134}
1135
1136SZ_PUBLIC void sz_fill_neon(sz_ptr_t target, sz_size_t length, sz_u8_t value) {
1137 uint8x16_t fill_vec = vdupq_n_u8(value); // Broadcast the value across the register
1138
1139 while (length >= 16) {
1140 vst1q_u8((sz_u8_t *)target, fill_vec);
1141 target += 16;
1142 length -= 16;
1143 }
1144
1145 // Handle remaining bytes
1146 if (length) sz_fill_serial(target, length, value);
1147}
1148
1149SZ_PUBLIC void sz_lookup_neon(sz_ptr_t target, sz_size_t length, sz_cptr_t source, char const lut[sz_at_least_(256)]) {
1150

Callers 1

sz_fillFunction · 0.85

Calls 1

sz_fill_serialFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…