Make dither4 & dither8 const.
authorCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Sat, 9 Feb 2008 22:57:37 +0000 (22:57 +0000)
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Sat, 9 Feb 2008 22:57:37 +0000 (22:57 +0000)
Originally committed as revision 25967 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

libswscale/swscale.c
libswscale/yuv2rgb.c

index 4f820e53aaa06aedd64a8a1ace0460d7afae28b2..62a4ab4068ede88f1f308d8f1ddf3746da6dbbb7 100644 (file)
@@ -194,11 +194,11 @@ static volatile uint64_t attribute_used __attribute__((aligned(8))) g5Dither;
 static volatile uint64_t attribute_used __attribute__((aligned(8))) g6Dither;
 static volatile uint64_t attribute_used __attribute__((aligned(8))) r5Dither;
 
-static uint64_t __attribute__((aligned(8))) dither4[2]={
+DECLARE_ASM_CONST(8, uint64_t, dither4[2])={
         0x0103010301030103LL,
         0x0200020002000200LL,};
 
-static uint64_t __attribute__((aligned(8))) dither8[2]={
+DECLARE_ASM_CONST(8, uint64_t, dither8[2])={
         0x0602060206020602LL,
         0x0004000400040004LL,};
 
index 0b175ffe381cb5ac7af910897035f6bdd6415e03..83a7e67cefe54ab8185ffc70a455802f642c186c 100644 (file)
@@ -170,11 +170,11 @@ static volatile uint64_t attribute_used __attribute__((aligned(8))) g5Dither;
 static volatile uint64_t attribute_used __attribute__((aligned(8))) g6Dither;
 static volatile uint64_t attribute_used __attribute__((aligned(8))) r5Dither;
 
-static uint64_t __attribute__((aligned(8))) dither4[2]={
+DECLARE_ASM_CONST(8, uint64_t, dither4[2])={
     0x0103010301030103LL,
     0x0200020002000200LL,};
 
-static uint64_t __attribute__((aligned(8))) dither8[2]={
+DECLARE_ASM_CONST(8, uint64_t, dither8[2])={
     0x0602060206020602LL,
     0x0004000400040004LL,};