Commit a78652fd authored by mru's avatar mru

SH4: fix compilation of memzero_align8()

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15880 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8069aa94
...@@ -26,8 +26,6 @@ ...@@ -26,8 +26,6 @@
static void memzero_align8(void *dst,size_t size) static void memzero_align8(void *dst,size_t size)
{ {
#if defined(__SH4__) || defined(__SH4_SINGLE__) || defined(__SH4_SINGLE_ONLY__) #if defined(__SH4__) || defined(__SH4_SINGLE__) || defined(__SH4_SINGLE_ONLY__)
(char*)dst+=size;
size/=8*4;
__asm__( __asm__(
#if defined(__SH4__) #if defined(__SH4__)
" fschg\n" //single float mode " fschg\n" //single float mode
...@@ -45,7 +43,7 @@ static void memzero_align8(void *dst,size_t size) ...@@ -45,7 +43,7 @@ static void memzero_align8(void *dst,size_t size)
#if defined(__SH4_SINGLE__) || defined(__SH4_SINGLE_ONLY__) #if defined(__SH4_SINGLE__) || defined(__SH4_SINGLE_ONLY__)
" fschg" //back to single " fschg" //back to single
#endif #endif
: : "r"(dst),"r"(size): "memory" ); : : "r"((char*)dst+size),"r"(size/32): "memory" );
#else #else
double *d = dst; double *d = dst;
size/=8*4; size/=8*4;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment