comparison libmpcodecs/vf_noise.c @ 29040:963f578121c6

Use x86_reg instead of long in several video filters to fix compilation on MinGW64.
author reimar
date Fri, 27 Mar 2009 20:34:55 +0000
parents df67d03dde3b
children 0f1b5b68af32
comparison
equal deleted inserted replaced
29039:ce682f8d1f68 29040:963f578121c6
145 145
146 /***************************************************************************/ 146 /***************************************************************************/
147 147
148 #if HAVE_MMX 148 #if HAVE_MMX
149 static inline void lineNoise_MMX(uint8_t *dst, uint8_t *src, int8_t *noise, int len, int shift){ 149 static inline void lineNoise_MMX(uint8_t *dst, uint8_t *src, int8_t *noise, int len, int shift){
150 long mmx_len= len&(~7); 150 x86_reg mmx_len= len&(~7);
151 noise+=shift; 151 noise+=shift;
152 152
153 __asm__ volatile( 153 __asm__ volatile(
154 "mov %3, %%"REG_a" \n\t" 154 "mov %3, %%"REG_a" \n\t"
155 "pcmpeqb %%mm7, %%mm7 \n\t" 155 "pcmpeqb %%mm7, %%mm7 \n\t"
174 #endif 174 #endif
175 175
176 //duplicate of previous except movntq 176 //duplicate of previous except movntq
177 #if HAVE_MMX2 177 #if HAVE_MMX2
178 static inline void lineNoise_MMX2(uint8_t *dst, uint8_t *src, int8_t *noise, int len, int shift){ 178 static inline void lineNoise_MMX2(uint8_t *dst, uint8_t *src, int8_t *noise, int len, int shift){
179 long mmx_len= len&(~7); 179 x86_reg mmx_len= len&(~7);
180 noise+=shift; 180 noise+=shift;
181 181
182 __asm__ volatile( 182 __asm__ volatile(
183 "mov %3, %%"REG_a" \n\t" 183 "mov %3, %%"REG_a" \n\t"
184 "pcmpeqb %%mm7, %%mm7 \n\t" 184 "pcmpeqb %%mm7, %%mm7 \n\t"
216 216
217 /***************************************************************************/ 217 /***************************************************************************/
218 218
219 #if HAVE_MMX 219 #if HAVE_MMX
220 static inline void lineNoiseAvg_MMX(uint8_t *dst, uint8_t *src, int len, int8_t **shift){ 220 static inline void lineNoiseAvg_MMX(uint8_t *dst, uint8_t *src, int len, int8_t **shift){
221 long mmx_len= len&(~7); 221 x86_reg mmx_len= len&(~7);
222 222
223 __asm__ volatile( 223 __asm__ volatile(
224 "mov %5, %%"REG_a" \n\t" 224 "mov %5, %%"REG_a" \n\t"
225 ASMALIGN(4) 225 ASMALIGN(4)
226 "1: \n\t" 226 "1: \n\t"