summaryrefslogtreecommitdiffhomepage
path: root/src/wincrt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wincrt.c')
-rw-r--r--src/wincrt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wincrt.c b/src/wincrt.c
index 8ffa6cb..177ce45 100644
--- a/src/wincrt.c
+++ b/src/wincrt.c
@@ -24,8 +24,8 @@ void *memcpy(void *restrict x, const void *restrict y, unsigned int sz) {
#ifdef __clang__
__asm__ volatile (
"rep movsb\n" :
- "=D" (x), "=S" (y), "=c" (sz) :
- "0" (x), "1" (y), "2" (sz) :
+ "+D" (x), "+S" (y), "+c" (sz) :
+ :
"memory"
);
#else // terrible fallback just in case someone wants to use this with MSVC