comparison x86/dsputil_mmx_rnd_template.c @ 10325:36b60aa6bc75 libavcodec

Replace several #ifdef PIC with the more obvious and correct #if !HAVE_EBX_AVAILABLE, since all it does is avoid using ebx.
author reimar
date Wed, 30 Sep 2009 09:49:12 +0000
parents 41245484dc0b
children
comparison
equal deleted inserted replaced
10324:5bbe55451800 10325:36b60aa6bc75
96 "add %5, %3 \n\t" 96 "add %5, %3 \n\t"
97 "movq %%mm5, (%3) \n\t" 97 "movq %%mm5, (%3) \n\t"
98 "add %5, %3 \n\t" 98 "add %5, %3 \n\t"
99 "subl $4, %0 \n\t" 99 "subl $4, %0 \n\t"
100 "jnz 1b \n\t" 100 "jnz 1b \n\t"
101 #ifdef PIC //Note "+bm" and "+mb" are buggy too (with gcc 3.2.2 at least) and cannot be used 101 #if !HAVE_EBX_AVAILABLE //Note "+bm" and "+mb" are buggy too (with gcc 3.2.2 at least) and cannot be used
102 :"+m"(h), "+a"(src1), "+c"(src2), "+d"(dst) 102 :"+m"(h), "+a"(src1), "+c"(src2), "+d"(dst)
103 #else 103 #else
104 :"+b"(h), "+a"(src1), "+c"(src2), "+d"(dst) 104 :"+b"(h), "+a"(src1), "+c"(src2), "+d"(dst)
105 #endif 105 #endif
106 :"S"((x86_reg)src1Stride), "D"((x86_reg)dstStride) 106 :"S"((x86_reg)src1Stride), "D"((x86_reg)dstStride)
191 "movq %%mm5, 8(%3) \n\t" 191 "movq %%mm5, 8(%3) \n\t"
192 "add %5, %3 \n\t" 192 "add %5, %3 \n\t"
193 "add $32, %2 \n\t" 193 "add $32, %2 \n\t"
194 "subl $2, %0 \n\t" 194 "subl $2, %0 \n\t"
195 "jnz 1b \n\t" 195 "jnz 1b \n\t"
196 #ifdef PIC //Note "+bm" and "+mb" are buggy too (with gcc 3.2.2 at least) and cannot be used 196 #if !HAVE_EBX_AVAILABLE //Note "+bm" and "+mb" are buggy too (with gcc 3.2.2 at least) and cannot be used
197 :"+m"(h), "+a"(src1), "+c"(src2), "+d"(dst) 197 :"+m"(h), "+a"(src1), "+c"(src2), "+d"(dst)
198 #else 198 #else
199 :"+b"(h), "+a"(src1), "+c"(src2), "+d"(dst) 199 :"+b"(h), "+a"(src1), "+c"(src2), "+d"(dst)
200 #endif 200 #endif
201 :"S"((x86_reg)src1Stride), "D"((x86_reg)dstStride) 201 :"S"((x86_reg)src1Stride), "D"((x86_reg)dstStride)