0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

tell the c compiler that the memory changed

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2522 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
michael 2001-10-28 19:54:23 +00:00
parent cd36f60911
commit a183352f5f
2 changed files with 16 additions and 0 deletions

View File

@ -448,6 +448,8 @@ static inline void yuv2yuv(uint16_t *buf0, uint16_t *buf1, uint16_t *uvbuf0, uin
int uvalpha1=uvalpha^4095; int uvalpha1=uvalpha^4095;
int i; int i;
asm volatile ("\n\t"::: "memory");
for(i=0;i<dstw;i++) for(i=0;i<dstw;i++)
{ {
((uint8_t*)dest)[0] = (buf0[i]*yalpha1+buf1[i]*yalpha)>>19; ((uint8_t*)dest)[0] = (buf0[i]*yalpha1+buf1[i]*yalpha)>>19;
@ -625,6 +627,8 @@ FULL_YSCALEYUV2RGB
); );
} }
#else #else
asm volatile ("\n\t"::: "memory");
if(dstbpp==32 || dstbpp==24) if(dstbpp==32 || dstbpp==24)
{ {
for(i=0;i<dstw;i++){ for(i=0;i<dstw;i++){
@ -733,6 +737,8 @@ FULL_YSCALEYUV2RGB
} }
#else #else
//FIXME unroll C loop and dont recalculate UV //FIXME unroll C loop and dont recalculate UV
asm volatile ("\n\t"::: "memory");
if(dstbpp==32 || dstbpp==24) if(dstbpp==32 || dstbpp==24)
{ {
for(i=0;i<dstw;i++){ for(i=0;i<dstw;i++){
@ -850,6 +856,8 @@ static inline void yuv2rgb1(uint16_t *buf0, uint16_t *buf1, uint16_t *uvbuf0, ui
} }
#else #else
//FIXME unroll C loop and dont recalculate UV //FIXME unroll C loop and dont recalculate UV
asm volatile ("\n\t"::: "memory");
if(dstbpp==32 || dstbpp==24) if(dstbpp==32 || dstbpp==24)
{ {
for(i=0;i<dstw;i++){ for(i=0;i<dstw;i++){

View File

@ -448,6 +448,8 @@ static inline void yuv2yuv(uint16_t *buf0, uint16_t *buf1, uint16_t *uvbuf0, uin
int uvalpha1=uvalpha^4095; int uvalpha1=uvalpha^4095;
int i; int i;
asm volatile ("\n\t"::: "memory");
for(i=0;i<dstw;i++) for(i=0;i<dstw;i++)
{ {
((uint8_t*)dest)[0] = (buf0[i]*yalpha1+buf1[i]*yalpha)>>19; ((uint8_t*)dest)[0] = (buf0[i]*yalpha1+buf1[i]*yalpha)>>19;
@ -625,6 +627,8 @@ FULL_YSCALEYUV2RGB
); );
} }
#else #else
asm volatile ("\n\t"::: "memory");
if(dstbpp==32 || dstbpp==24) if(dstbpp==32 || dstbpp==24)
{ {
for(i=0;i<dstw;i++){ for(i=0;i<dstw;i++){
@ -733,6 +737,8 @@ FULL_YSCALEYUV2RGB
} }
#else #else
//FIXME unroll C loop and dont recalculate UV //FIXME unroll C loop and dont recalculate UV
asm volatile ("\n\t"::: "memory");
if(dstbpp==32 || dstbpp==24) if(dstbpp==32 || dstbpp==24)
{ {
for(i=0;i<dstw;i++){ for(i=0;i<dstw;i++){
@ -850,6 +856,8 @@ static inline void yuv2rgb1(uint16_t *buf0, uint16_t *buf1, uint16_t *uvbuf0, ui
} }
#else #else
//FIXME unroll C loop and dont recalculate UV //FIXME unroll C loop and dont recalculate UV
asm volatile ("\n\t"::: "memory");
if(dstbpp==32 || dstbpp==24) if(dstbpp==32 || dstbpp==24)
{ {
for(i=0;i<dstw;i++){ for(i=0;i<dstw;i++){