comparison simple_idct.c @ 8590:7a463923ecd1 libavcodec

Change semantic of CONFIG_*, HAVE_* and ARCH_*. They are now always defined to either 0 or 1.
author aurel
date Tue, 13 Jan 2009 23:44:16 +0000
parents 927f0ee6e4ad
children e9d9d946f213
comparison
equal deleted inserted replaced
8589:a29b5b5c3c9d 8590:7a463923ecd1
57 #endif 57 #endif
58 58
59 static inline void idctRowCondDC (DCTELEM * row) 59 static inline void idctRowCondDC (DCTELEM * row)
60 { 60 {
61 int a0, a1, a2, a3, b0, b1, b2, b3; 61 int a0, a1, a2, a3, b0, b1, b2, b3;
62 #ifdef HAVE_FAST_64BIT 62 #if HAVE_FAST_64BIT
63 uint64_t temp; 63 uint64_t temp;
64 #else 64 #else
65 uint32_t temp; 65 uint32_t temp;
66 #endif 66 #endif
67 67
68 #ifdef HAVE_FAST_64BIT 68 #if HAVE_FAST_64BIT
69 #ifdef WORDS_BIGENDIAN 69 #ifdef WORDS_BIGENDIAN
70 #define ROW0_MASK 0xffff000000000000LL 70 #define ROW0_MASK 0xffff000000000000LL
71 #else 71 #else
72 #define ROW0_MASK 0xffffLL 72 #define ROW0_MASK 0xffffLL
73 #endif 73 #endif
125 b2 = MUL16(W5, row[1]); 125 b2 = MUL16(W5, row[1]);
126 MAC16(b2, -W1, row[3]); 126 MAC16(b2, -W1, row[3]);
127 b3 = MUL16(W7, row[1]); 127 b3 = MUL16(W7, row[1]);
128 MAC16(b3, -W5, row[3]); 128 MAC16(b3, -W5, row[3]);
129 129
130 #ifdef HAVE_FAST_64BIT 130 #if HAVE_FAST_64BIT
131 temp = ((uint64_t*)row)[1]; 131 temp = ((uint64_t*)row)[1];
132 #else 132 #else
133 temp = ((uint32_t*)row)[2] | ((uint32_t*)row)[3]; 133 temp = ((uint32_t*)row)[2] | ((uint32_t*)row)[3];
134 #endif 134 #endif
135 if (temp != 0) { 135 if (temp != 0) {