]>
Commit | Line | Data |
---|---|---|
320054e8 DG |
1 | #include <wchar.h> |
2 | ||
3 | wchar_t *wmemcpy(wchar_t *restrict d, const wchar_t *restrict s, size_t n) | |
4 | { | |
75fdabe1 CS |
5 | #if defined(__wasm_bulk_memory__) |
6 | return __builtin_wmemcpy(d, s, n); | |
7 | #else | |
320054e8 DG |
8 | wchar_t *a = d; |
9 | while (n--) *d++ = *s++; | |
10 | return a; | |
75fdabe1 | 11 | #endif // __wasm_bulk_memory__ |
320054e8 | 12 | } |