summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dxr3memcpy.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/dxr3memcpy.c b/dxr3memcpy.c
index 3572501..374cc32 100644
--- a/dxr3memcpy.c
+++ b/dxr3memcpy.c
@@ -147,8 +147,8 @@ static void * sse_memcpy(void * to, const void * from, size_t len)
"movntps %%xmm2, 32(%1)\n"
"movntps %%xmm3, 48(%1)\n"
: : "r" (from), "r" (to) : "memory");
- ((const unsigned char *)from)+=64;
- ((unsigned char *)to)+=64;
+ from = ((const unsigned char *)from) + 64;
+ to = ((unsigned char *)to) + 64;
}
else
/*
@@ -170,8 +170,8 @@ static void * sse_memcpy(void * to, const void * from, size_t len)
"movntps %%xmm2, 32(%1)\n"
"movntps %%xmm3, 48(%1)\n"
: : "r" (from), "r" (to) : "memory");
- ((const unsigned char *)from)+=64;
- ((unsigned char *)to)+=64;
+ from = ((const unsigned char *)from) + 64;
+ to = ((unsigned char *)to) + 64;
}
/* since movntq is weakly-ordered, a "sfence"
* is needed to become ordered again. */
@@ -226,8 +226,8 @@ static void * mmx_memcpy(void * to, const void * from, size_t len)
"movq %%mm6, 48(%1)\n"
"movq %%mm7, 56(%1)\n"
: : "r" (from), "r" (to) : "memory");
- ((const unsigned char *)from)+=64;
- ((unsigned char *)to)+=64;
+ from = ((const unsigned char *)from) + 64;
+ to = ((unsigned char *)to) + 64;
}
__asm__ __volatile__ ("emms": : :"memory");
}
@@ -294,8 +294,8 @@ static void * mmx2_memcpy(void * to, const void * from, size_t len)
"movntq %%mm6, 48(%1)\n"
"movntq %%mm7, 56(%1)\n"
: : "r" (from), "r" (to) : "memory");
- ((const unsigned char *)from)+=64;
- ((unsigned char *)to)+=64;
+ from = ((const unsigned char *)from) + 64;
+ to = ((unsigned char *)to) + 64;
}
/* since movntq is weakly-ordered, a "sfence"
* is needed to become ordered again. */