mirror of
https://github.com/mpv-player/mpv
synced 2025-01-11 09:29:29 +00:00
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
This commit is contained in:
parent
57abdc5516
commit
20c8c1aea2
@ -116,8 +116,8 @@ Notes:
|
||||
#define OPTIONS_ARRAY_SIZE 10
|
||||
|
||||
#ifdef HAVE_MMX
|
||||
static uint64_t __attribute__((aligned(8))) packedYOffset= 0x0000000000000000LL;
|
||||
static uint64_t __attribute__((aligned(8))) packedYScale= 0x0100010001000100LL;
|
||||
static volatile uint64_t __attribute__((aligned(8))) packedYOffset= 0x0000000000000000LL;
|
||||
static volatile uint64_t __attribute__((aligned(8))) packedYScale= 0x0100010001000100LL;
|
||||
static uint64_t __attribute__((aligned(8))) w05= 0x0005000500050005LL;
|
||||
static uint64_t __attribute__((aligned(8))) w20= 0x0020002000200020LL;
|
||||
static uint64_t __attribute__((aligned(8))) w1400= 0x1400140014001400LL;
|
||||
|
@ -116,8 +116,8 @@ Notes:
|
||||
#define OPTIONS_ARRAY_SIZE 10
|
||||
|
||||
#ifdef HAVE_MMX
|
||||
static uint64_t __attribute__((aligned(8))) packedYOffset= 0x0000000000000000LL;
|
||||
static uint64_t __attribute__((aligned(8))) packedYScale= 0x0100010001000100LL;
|
||||
static volatile uint64_t __attribute__((aligned(8))) packedYOffset= 0x0000000000000000LL;
|
||||
static volatile uint64_t __attribute__((aligned(8))) packedYScale= 0x0100010001000100LL;
|
||||
static uint64_t __attribute__((aligned(8))) w05= 0x0005000500050005LL;
|
||||
static uint64_t __attribute__((aligned(8))) w20= 0x0020002000200020LL;
|
||||
static uint64_t __attribute__((aligned(8))) w1400= 0x1400140014001400LL;
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user