changeset 8170:40d792395c63 libavcodec

SH4: fix compilation of memzero_align8()
author mru
date Wed, 19 Nov 2008 00:37:24 +0000
parents 2d6a9c564180
children 49648dd185cf
files sh4/dsputil_sh4.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/sh4/dsputil_sh4.c	Wed Nov 19 00:37:21 2008 +0000
+++ b/sh4/dsputil_sh4.c	Wed Nov 19 00:37:24 2008 +0000
@@ -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 @@
 #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;