summaryrefslogtreecommitdiff
path: root/editors/biew/patches/patch-ad
blob: 018088b28df1335ee286e877f8fc0679c62816cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
$NetBSD: patch-ad,v 1.1 2006/06/30 22:22:58 wiz Exp $

--- biewlib/sysdep/ia32/aclib_template.c.orig	2002-12-13 15:31:20.000000000 +0000
+++ biewlib/sysdep/ia32/aclib_template.c
@@ -209,8 +209,8 @@ static void * RENAME(fast_memcpy)(void *
 		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;
 	}
 
 	// Pure Assembly cuz gcc is a bit unpredictable ;)
@@ -297,8 +297,8 @@ static void * RENAME(fast_memcpy)(void *
 		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;
 	}
 
 #endif /* Have SSE */
@@ -393,7 +393,7 @@ static void * RENAME(fast_memset)(void *
 		MOVNTQ" %%mm0, 112(%0)\n"
 		MOVNTQ" %%mm0, 120(%0)\n"
 		:: "r" (to) : "memory");
-		((unsigned char *)to)+=128;
+		to = ((unsigned char *)to)+128;
 	}
 #endif /* Have SSE */
 #ifdef HAVE_MMX2