123456789101112131415161718 |
- // SPDX-License-Identifier: GPL-2.0 or GPL-3.0
- // Copyright © 2019 Ariadne Devos
- #include <stddef.h>
- #include <stdint.h>
- #include <sHT/string/setops.h>
- #include <sHT/string/filler-merge.h>
- void
- sHT_merge16(uint16_t dest[], const uint16_t from[], size_t n, size_t brk, size_t end)
- {
- size_t end_gap = brk + (n - end);
- sHT_bzero16_r1(dest, end_gap, brk);
- sHT_memcpy16_r2(dest, from, n, end_gap, brk);
- sHT_memcpy16_r2(dest, from, brk, 0, 0);
- }
|