]>
git.proxmox.com Git - wasi-libc.git/blob - libc-top-half/musl/src/string/wmemmove.c
4 wchar_t *wmemmove(wchar_t *d
, const wchar_t *s
, size_t n
)
6 #if defined(__wasm_bulk_memory__)
7 return __builtin_wmemmove(d
, s
, n
);
11 if ((uintptr_t)d
-(uintptr_t)s
< n
* sizeof *d
)
12 while (n
--) d
[n
] = s
[n
];
14 while (n
--) *d
++ = *s
++;
16 #endif // __wasm_bulk_memory__