Tags: patch

Here's a patch for the aforementioned problem. It simply adds a "cld" at the end of the inline assembler sequence.

Regards,
        Christoph
--- include/SDL_stdinc.h.orig   2006-06-27 06:48:32.000000000 +0200
+++ include/SDL_stdinc.h        2008-01-27 16:39:16.000000000 +0100
@@ -319,6 +319,7 @@
        __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))    \

Reply via email to