From c136ece9b309d2407069aae73084492c84abff09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Wed, 19 Nov 2008 00:37:24 +0000 Subject: [PATCH] SH4: fix compilation of memzero_align8() Originally committed as revision 15880 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/sh4/dsputil_sh4.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavcodec/sh4/dsputil_sh4.c b/libavcodec/sh4/dsputil_sh4.c index e7e2de6e19..96a33f8c50 100644 --- a/libavcodec/sh4/dsputil_sh4.c +++ b/libavcodec/sh4/dsputil_sh4.c @@ -26,8 +26,6 @@ static void memzero_align8(void *dst,size_t size) { #if defined(__SH4__) || defined(__SH4_SINGLE__) || defined(__SH4_SINGLE_ONLY__) - (char*)dst+=size; - size/=8*4; __asm__( #if defined(__SH4__) " fschg\n" //single float mode @@ -45,7 +43,7 @@ static void memzero_align8(void *dst,size_t size) #if defined(__SH4_SINGLE__) || defined(__SH4_SINGLE_ONLY__) " fschg" //back to single #endif - : : "r"(dst),"r"(size): "memory" ); + : : "r"((char*)dst+size),"r"(size/32): "memory" ); #else double *d = dst; size/=8*4;