mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-08-18 23:35:06 +02:00
SH4: fix compilation of memzero_align8()
Originally committed as revision 15880 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
b42019c130
commit
c136ece9b3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user