summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraurel <aurel@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-10-03 23:51:32 +0000
committeraurel <aurel@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-10-03 23:51:32 +0000
commitae22c7d3f7ba02270af08c5b8789f0c707db33fd (patch)
tree88812087df010d4c90195aefb871cc796fe3a677
parent30ad3c812e6b906fa96d206dff12c50104bd6c62 (diff)
downloadmpv-ae22c7d3f7ba02270af08c5b8789f0c707db33fd.tar.bz2
mpv-ae22c7d3f7ba02270af08c5b8789f0c707db33fd.tar.xz
make some global var static (fix a build failure with shared lib on x86_64)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20024 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libswscale/yuv2rgb.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c
index c7b7d40376..71759bc94e 100644
--- a/libswscale/yuv2rgb.c
+++ b/libswscale/yuv2rgb.c
@@ -156,26 +156,26 @@ const uint8_t __attribute__((aligned(8))) dither_8x8_220[8][8]={
#ifdef HAVE_MMX
/* hope these constant values are cache line aligned */
-uint64_t attribute_used __attribute__((aligned(8))) mmx_00ffw = 0x00ff00ff00ff00ffULL;
-uint64_t attribute_used __attribute__((aligned(8))) mmx_redmask = 0xf8f8f8f8f8f8f8f8ULL;
-uint64_t attribute_used __attribute__((aligned(8))) mmx_grnmask = 0xfcfcfcfcfcfcfcfcULL;
+static uint64_t attribute_used __attribute__((aligned(8))) mmx_00ffw = 0x00ff00ff00ff00ffULL;
+static uint64_t attribute_used __attribute__((aligned(8))) mmx_redmask = 0xf8f8f8f8f8f8f8f8ULL;
+static uint64_t attribute_used __attribute__((aligned(8))) mmx_grnmask = 0xfcfcfcfcfcfcfcfcULL;
-uint64_t attribute_used __attribute__((aligned(8))) M24A= 0x00FF0000FF0000FFULL;
-uint64_t attribute_used __attribute__((aligned(8))) M24B= 0xFF0000FF0000FF00ULL;
-uint64_t attribute_used __attribute__((aligned(8))) M24C= 0x0000FF0000FF0000ULL;
+static uint64_t attribute_used __attribute__((aligned(8))) M24A= 0x00FF0000FF0000FFULL;
+static uint64_t attribute_used __attribute__((aligned(8))) M24B= 0xFF0000FF0000FF00ULL;
+static uint64_t attribute_used __attribute__((aligned(8))) M24C= 0x0000FF0000FF0000ULL;
// the volatile is required because gcc otherwise optimizes some writes away not knowing that these
// are read in the asm block
-volatile uint64_t attribute_used __attribute__((aligned(8))) b5Dither;
-volatile uint64_t attribute_used __attribute__((aligned(8))) g5Dither;
-volatile uint64_t attribute_used __attribute__((aligned(8))) g6Dither;
-volatile uint64_t attribute_used __attribute__((aligned(8))) r5Dither;
+static volatile uint64_t attribute_used __attribute__((aligned(8))) b5Dither;
+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;
-uint64_t __attribute__((aligned(8))) dither4[2]={
+static uint64_t __attribute__((aligned(8))) dither4[2]={
0x0103010301030103LL,
0x0200020002000200LL,};
-uint64_t __attribute__((aligned(8))) dither8[2]={
+static uint64_t __attribute__((aligned(8))) dither8[2]={
0x0602060206020602LL,
0x0004000400040004LL,};