mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-12 02:14:56 +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)
|
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)
|
|||||||
#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;
|
||||||
|
Loading…
Reference in New Issue
Block a user