[vlc-devel] [PATCH 3/3] grain: fix clobber list

Rémi Denis-Courmont remi at remlab.net
Sat Nov 19 11:22:37 CET 2011


From: Rémi Duraffort <ivoire at videolan.org>

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
---
 modules/video_filter/grain.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/video_filter/grain.c b/modules/video_filter/grain.c
index 40d9428..a180ae3 100644
--- a/modules/video_filter/grain.c
+++ b/modules/video_filter/grain.c
@@ -156,6 +156,7 @@ static void BlockBlendC(uint8_t *dst, size_t dst_pitch,
 #ifdef CAN_COMPILE_SSE2
 #define _STRING(x) #x
 #define STRING(x) _STRING(x)
+VLC_SSE
 static void BlockBlendSse2(uint8_t *dst, size_t dst_pitch,
                            const uint8_t *src, size_t src_pitch,
                            const int16_t *noise)
@@ -186,7 +187,7 @@ static void BlockBlendSse2(uint8_t *dst, size_t dst_pitch,
                 [src1]"r"(&src[(2*i+0) * src_pitch]),
                 [src2]"r"(&src[(2*i+1) * src_pitch]),
                 [noise]"r"(&noise[2*i * BANK_SIZE])
-            : "memory");
+            : "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "memory");
     }
 #else
 #   error "BLEND_SIZE unsupported"
-- 
1.7.7.3




More information about the vlc-devel mailing list