summaryrefslogtreecommitdiffstats
path: root/postproc/yuv2rgb.c
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-04-26 19:38:17 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-04-26 19:38:17 +0000
commit688ccb2f3dd41b85b2f4d9f263d309f076f16247 (patch)
treeae9499c3c3e4d2e5fe63ab17c7c9ad7506ec66cc /postproc/yuv2rgb.c
parent7cfacb3340f4195a6f47cdb0de3095df53a3a18f (diff)
downloadmpv-688ccb2f3dd41b85b2f4d9f263d309f076f16247.tar.bz2
mpv-688ccb2f3dd41b85b2f4d9f263d309f076f16247.tar.xz
attribute_used patch by (matthieu castet <castet.matthieu at free dot fr>)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12302 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'postproc/yuv2rgb.c')
-rw-r--r--postproc/yuv2rgb.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/postproc/yuv2rgb.c b/postproc/yuv2rgb.c
index b27f3690a0..9cb65c6e69 100644
--- a/postproc/yuv2rgb.c
+++ b/postproc/yuv2rgb.c
@@ -159,20 +159,20 @@ const uint8_t __attribute__((aligned(8))) dither_8x8_220[8][8]={
#ifdef ARCH_X86
/* hope these constant values are cache line aligned */
-uint64_t __attribute__((aligned(8))) mmx_00ffw = 0x00ff00ff00ff00ffULL;
-uint64_t __attribute__((aligned(8))) mmx_redmask = 0xf8f8f8f8f8f8f8f8ULL;
-uint64_t __attribute__((aligned(8))) mmx_grnmask = 0xfcfcfcfcfcfcfcfcULL;
+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;
-uint64_t __attribute__((aligned(8))) M24A= 0x00FF0000FF0000FFULL;
-uint64_t __attribute__((aligned(8))) M24B= 0xFF0000FF0000FF00ULL;
-uint64_t __attribute__((aligned(8))) M24C= 0x0000FF0000FF0000ULL;
+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;
// 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__((aligned(8))) b5Dither;
-volatile uint64_t __attribute__((aligned(8))) g5Dither;
-volatile uint64_t __attribute__((aligned(8))) g6Dither;
-volatile uint64_t __attribute__((aligned(8))) r5Dither;
+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;
uint64_t __attribute__((aligned(8))) dither4[2]={
0x0103010301030103LL,