22 #ifndef AVCODEC_X86_MATHOPS_H 23 #define AVCODEC_X86_MATHOPS_H 38 if (__builtin_constant_p(shift))
41 "shrdl %4, %%edx, %%eax \n\t" 42 :
"=a"(rt),
"=d"(dummy)
43 :
"a"(a),
"rm"(b),
"i"(shift & 0x1F)
48 "shrdl %4, %%edx, %%eax \n\t" 49 :
"=a"(rt),
"=d"(dummy)
50 :
"a"(a),
"rm"(b),
"c"((
uint8_t)shift)
61 :
"=d"(rt),
"=a"(dummy)
83 #define mid_pred mid_pred 102 #define COPY3_IF_LT(x, y, a, b, c, d)\ 108 : "+&r" (x), "+&r" (a), "+r" (c)\ 109 : "r" (y), "r" (b), "r" (d)\ 115 #define MASK_ABS(mask, level) \ 116 __asm__ ("cdq \n\t" \ 119 : "+a"(level), "=&d"(mask)) 122 #define NEG_SSR32 NEG_SSR32 124 if (__builtin_constant_p(s))
125 __asm__ (
"sarl %1, %0\n\t" 130 __asm__ (
"sarl %1, %0\n\t" 137 #define NEG_USR32 NEG_USR32 138 static inline uint32_t
NEG_USR32(uint32_t a, int8_t s){
139 if (__builtin_constant_p(s))
140 __asm__ (
"shrl %1, %0\n\t" 145 __asm__ (
"shrl %1, %0\n\t"
static int shift(int a, int b)
#define i(width, name, range_min, range_max)
common internal and external API header