summaryrefslogtreecommitdiffstats
path: root/postproc
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-28 19:54:23 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-28 19:54:23 +0000
commita183352f5f3de275208b6582e64d25a6e0b2ec9e (patch)
tree57a9efc1181a9269e58582b4506d8aa9630edefd /postproc
parentcd36f609110a5d782dc750b716d9f013a575198d (diff)
downloadmpv-a183352f5f3de275208b6582e64d25a6e0b2ec9e.tar.bz2
mpv-a183352f5f3de275208b6582e64d25a6e0b2ec9e.tar.xz
tell the c compiler that the memory changed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2522 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'postproc')
-rw-r--r--postproc/swscale.c8
-rw-r--r--postproc/swscale_template.c8
2 files changed, 16 insertions, 0 deletions
diff --git a/postproc/swscale.c b/postproc/swscale.c
index d4a242309b..a4dd1a4147 100644
--- a/postproc/swscale.c
+++ b/postproc/swscale.c
@@ -448,6 +448,8 @@ static inline void yuv2yuv(uint16_t *buf0, uint16_t *buf1, uint16_t *uvbuf0, uin
int uvalpha1=uvalpha^4095;
int i;
+ asm volatile ("\n\t"::: "memory");
+
for(i=0;i<dstw;i++)
{
((uint8_t*)dest)[0] = (buf0[i]*yalpha1+buf1[i]*yalpha)>>19;
@@ -625,6 +627,8 @@ FULL_YSCALEYUV2RGB
);
}
#else
+ asm volatile ("\n\t"::: "memory");
+
if(dstbpp==32 || dstbpp==24)
{
for(i=0;i<dstw;i++){
@@ -733,6 +737,8 @@ FULL_YSCALEYUV2RGB
}
#else
//FIXME unroll C loop and dont recalculate UV
+ asm volatile ("\n\t"::: "memory");
+
if(dstbpp==32 || dstbpp==24)
{
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
//FIXME unroll C loop and dont recalculate UV
+ asm volatile ("\n\t"::: "memory");
+
if(dstbpp==32 || dstbpp==24)
{
for(i=0;i<dstw;i++){
diff --git a/postproc/swscale_template.c b/postproc/swscale_template.c
index d4a242309b..a4dd1a4147 100644
--- a/postproc/swscale_template.c
+++ b/postproc/swscale_template.c
@@ -448,6 +448,8 @@ static inline void yuv2yuv(uint16_t *buf0, uint16_t *buf1, uint16_t *uvbuf0, uin
int uvalpha1=uvalpha^4095;
int i;
+ asm volatile ("\n\t"::: "memory");
+
for(i=0;i<dstw;i++)
{
((uint8_t*)dest)[0] = (buf0[i]*yalpha1+buf1[i]*yalpha)>>19;
@@ -625,6 +627,8 @@ FULL_YSCALEYUV2RGB
);
}
#else
+ asm volatile ("\n\t"::: "memory");
+
if(dstbpp==32 || dstbpp==24)
{
for(i=0;i<dstw;i++){
@@ -733,6 +737,8 @@ FULL_YSCALEYUV2RGB
}
#else
//FIXME unroll C loop and dont recalculate UV
+ asm volatile ("\n\t"::: "memory");
+
if(dstbpp==32 || dstbpp==24)
{
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
//FIXME unroll C loop and dont recalculate UV
+ asm volatile ("\n\t"::: "memory");
+
if(dstbpp==32 || dstbpp==24)
{
for(i=0;i<dstw;i++){