summaryrefslogtreecommitdiff
blob: f91f63bbf052fcf9d143ee1325fd4d793ea0f859 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fix from upstream for the cld issue on x86

http://bugs.gentoo.org/217097

--- include/SDL_stdinc.h
+++ include/SDL_stdinc.h
@@ -373,6 +373,7 @@ do {							\
 	__asm__ __volatile__ (				\
 		"std\n\t"				\
 		"rep ; movsl\n\t"			\
+		"cld\n\t"				\
 		: "=&c" (u0), "=&D" (u1), "=&S" (u2)	\
 		: "0" (n >> 2),				\
 		  "1" (dstp+(n-4)), "2" (srcp+(n-4))	\