| 339 | #endif |
| 340 | |
| 341 | SZ_PUBLIC void sz_copy_serial(sz_ptr_t target, sz_cptr_t source, sz_size_t length) { |
| 342 | #if SZ_USE_MISALIGNED_LOADS |
| 343 | while (length >= 8) *(sz_u64_t *)target = *(sz_u64_t const *)source, target += 8, source += 8, length -= 8; |
| 344 | #endif |
| 345 | while (length--) *(target++) = *(source++); |
| 346 | } |
| 347 | |
| 348 | SZ_PUBLIC void sz_move_serial(sz_ptr_t target, sz_cptr_t source, sz_size_t length) { |
| 349 | // Implementing `memmove` is trickier, than `memcpy`, as the ranges may overlap. |
no outgoing calls
no test coverage detected
searching dependent graphs…