aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2008-11-19 00:37:24 +0000
committerMåns Rullgård <mans@mansr.com>2008-11-19 00:37:24 +0000
commitc136ece9b309d2407069aae73084492c84abff09 (patch)
tree04fea7d285b08747f5edf4a7b66877c58191b482
parentb42019c1309600702eaf4cfb5a1c4d2692bbbfa6 (diff)
downloadffmpeg-c136ece9b309d2407069aae73084492c84abff09.tar.gz
SH4: fix compilation of memzero_align8()
Originally committed as revision 15880 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/sh4/dsputil_sh4.c4
1 files changed, 1 insertions, 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;