diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-06 19:26:22 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-06 19:26:22 +0000 |
commit | 20c8c1aea2b19fed6fe6c7478e08a6deb9803db5 (patch) | |
tree | 6cf2a9f64d2283722390b1fdd86829b9b5ce4751 /postproc/swscale_template.c | |
parent | 57abdc55162d68fb8f105136ec1b25c246bb69e6 (diff) | |
download | mpv-20c8c1aea2b19fed6fe6c7478e08a6deb9803db5.tar.bz2 mpv-20c8c1aea2b19fed6fe6c7478e08a6deb9803db5.tar.xz |
gcc does optimize writes to non volatile variables away if it didnt know that they were read in between
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2751 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'postproc/swscale_template.c')
-rw-r--r-- | postproc/swscale_template.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/postproc/swscale_template.c b/postproc/swscale_template.c index 8ea2396c70..f40eccf207 100644 --- a/postproc/swscale_template.c +++ b/postproc/swscale_template.c @@ -71,10 +71,10 @@ static uint64_t __attribute__((aligned(8))) bm00001111=0x00000000FFFFFFFFLL; static uint64_t __attribute__((aligned(8))) bm00000111=0x0000000000FFFFFFLL; static uint64_t __attribute__((aligned(8))) bm11111000=0xFFFFFFFFFF000000LL; -static uint64_t __attribute__((aligned(8))) b5Dither; -static uint64_t __attribute__((aligned(8))) g5Dither; -static uint64_t __attribute__((aligned(8))) g6Dither; -static uint64_t __attribute__((aligned(8))) r5Dither; +static volatile uint64_t __attribute__((aligned(8))) b5Dither; +static volatile uint64_t __attribute__((aligned(8))) g5Dither; +static volatile uint64_t __attribute__((aligned(8))) g6Dither; +static volatile uint64_t __attribute__((aligned(8))) r5Dither; static uint64_t __attribute__((aligned(8))) dither4[2]={ 0x0103010301030103LL, |