Commit 902c748c authored by Reimar Döffinger's avatar Reimar Döffinger

change the type of esp in SwsContext to uint64_t so it can hold a full register

also on 64 bit systems.

Originally committed as revision 18401 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
parent 8d39d67a
...@@ -124,8 +124,8 @@ typedef struct SwsContext{ ...@@ -124,8 +124,8 @@ typedef struct SwsContext{
#define LUM_MMX_FILTER_OFFSET "11*8" #define LUM_MMX_FILTER_OFFSET "11*8"
#define CHR_MMX_FILTER_OFFSET "11*8+4*4*256" #define CHR_MMX_FILTER_OFFSET "11*8+4*4*256"
#define DSTW_OFFSET "11*8+4*4*256*2" //do not change, its hardcoded in the asm #define DSTW_OFFSET "11*8+4*4*256*2" //do not change, its hardcoded in the asm
#define ESP_OFFSET "11*8+4*4*256*2+4" #define ESP_OFFSET "11*8+4*4*256*2+8"
#define VROUNDER_OFFSET "11*8+4*4*256*2+8" #define VROUNDER_OFFSET "11*8+4*4*256*2+16"
uint64_t redDither __attribute__((aligned(8))); uint64_t redDither __attribute__((aligned(8)));
uint64_t greenDither __attribute__((aligned(8))); uint64_t greenDither __attribute__((aligned(8)));
...@@ -142,7 +142,7 @@ typedef struct SwsContext{ ...@@ -142,7 +142,7 @@ typedef struct SwsContext{
int32_t lumMmxFilter[4*MAX_FILTER_SIZE]; int32_t lumMmxFilter[4*MAX_FILTER_SIZE];
int32_t chrMmxFilter[4*MAX_FILTER_SIZE]; int32_t chrMmxFilter[4*MAX_FILTER_SIZE];
int dstW; int dstW;
int esp; uint64_t esp __attribute__((aligned(8)));
uint64_t vRounder __attribute__((aligned(8))); uint64_t vRounder __attribute__((aligned(8)));
#ifdef HAVE_ALTIVEC #ifdef HAVE_ALTIVEC
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment