SH4: fix compilation of memzero_align8()

Originally committed as revision 15880 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Måns Rullgård 2008-11-19 00:37:24 +00:00
parent b42019c130
commit c136ece9b3

View File

@ -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;