changeset 25935:6e477c9e5410

Make dither4 & dither8 const.
author cehoyos
date Sat, 09 Feb 2008 22:57:37 +0000
parents f0e227951c06
children 83e09f0f82a3
files libswscale/swscale.c libswscale/yuv2rgb.c
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale.c	Sat Feb 09 14:47:10 2008 +0000
+++ b/libswscale/swscale.c	Sat Feb 09 22:57:37 2008 +0000
@@ -194,11 +194,11 @@
 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,};
 
--- a/libswscale/yuv2rgb.c	Sat Feb 09 14:47:10 2008 +0000
+++ b/libswscale/yuv2rgb.c	Sat Feb 09 22:57:37 2008 +0000
@@ -170,11 +170,11 @@
 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,};