]> git.proxmox.com Git - wasi-libc.git/commitdiff
Don't use __builtin version of wmem*
authorCheng Shao <astrohavoc@gmail.com>
Sat, 4 Dec 2021 04:27:20 +0000 (04:27 +0000)
committerDan Gohman <dev@sunfishcode.online>
Fri, 20 May 2022 20:39:43 +0000 (13:39 -0700)
libc-top-half/musl/src/string/wmemcpy.c
libc-top-half/musl/src/string/wmemmove.c

index c477f58c40aa37165b994934a620f17a0861c6a0..52e6e6e07b9dac897d5ee6665caed25afccafc70 100644 (file)
@@ -2,11 +2,7 @@
 
 wchar_t *wmemcpy(wchar_t *restrict d, const wchar_t *restrict s, size_t n)
 {
-#if defined(__wasm_bulk_memory__)
-       return __builtin_wmemcpy(d, s, n);
-#else
        wchar_t *a = d;
        while (n--) *d++ = *s++;
        return a;
-#endif // __wasm_bulk_memory__
 }
index 6cb19f7b7d293d1bb50ec351cef1f05b3b32dcc0..964c9032991ed4620b381cb9dcb31eb789ac19a5 100644 (file)
@@ -3,9 +3,6 @@
 
 wchar_t *wmemmove(wchar_t *d, const wchar_t *s, size_t n)
 {
-#if defined(__wasm_bulk_memory__)
-       return __builtin_wmemmove(d, s, n);
-#else
        wchar_t *d0 = d;
        if (d == s) return d;
        if ((uintptr_t)d-(uintptr_t)s < n * sizeof *d)
@@ -13,5 +10,4 @@ wchar_t *wmemmove(wchar_t *d, const wchar_t *s, size_t n)
        else
                while (n--) *d++ = *s++;
        return d0;
-#endif // __wasm_bulk_memory__
 }