22#ifndef AVCODEC_X86_MATHOPS_H
23#define AVCODEC_X86_MATHOPS_H
37 if (__builtin_constant_p(
shift))
40 "shrdl %4, %%edx, %%eax \n\t"
41 :
"=a"(rt),
"=d"(
dummy)
42 :
"a"(
a),
"rm"(
b),
"i"(
shift & 0x1F)
47 "shrdl %4, %%edx, %%eax \n\t"
48 :
"=a"(rt),
"=d"(
dummy)
49 :
"a"(
a),
"rm"(
b),
"c"((uint8_t)
shift)
60 :
"=d"(rt),
"=a"(
dummy)
82#define mid_pred mid_pred
101#define COPY3_IF_LT(x, y, a, b, c, d)\
107 : "+&r" (x), "+&r" (a), "+r" (c)\
108 : "r" (y), "r" (b), "r" (d)\
114#define MASK_ABS(mask, level) \
115 __asm__ ("cdq \n\t" \
118 : "+a"(level), "=&d"(mask))
121#define NEG_SSR32 NEG_SSR32
123 if (__builtin_constant_p(
s))
131 :
"c" ((uint8_t)(-
s))
136#define NEG_USR32 NEG_USR32
137static inline uint32_t
NEG_USR32(uint32_t
a, int8_t
s){
138 if (__builtin_constant_p(
s))
146 :
"c" ((uint8_t)(-
s))
__asm__(".macro parse_r var r\n\t" "\\var = -1\n\t" _IFC_REG(0) _IFC_REG(1) _IFC_REG(2) _IFC_REG(3) _IFC_REG(4) _IFC_REG(5) _IFC_REG(6) _IFC_REG(7) _IFC_REG(8) _IFC_REG(9) _IFC_REG(10) _IFC_REG(11) _IFC_REG(12) _IFC_REG(13) _IFC_REG(14) _IFC_REG(15) _IFC_REG(16) _IFC_REG(17) _IFC_REG(18) _IFC_REG(19) _IFC_REG(20) _IFC_REG(21) _IFC_REG(22) _IFC_REG(23) _IFC_REG(24) _IFC_REG(25) _IFC_REG(26) _IFC_REG(27) _IFC_REG(28) _IFC_REG(29) _IFC_REG(30) _IFC_REG(31) ".iflt \\var\n\t" ".error \"Unable to parse register name \\r\"\n\t" ".endif\n\t" ".endm")
#define i(width, name, range_min, range_max)
common internal and external API header
static int shift(int a, int b)