44 #if HAVE_7REGS && !BROKEN_COMPILER
45 #define decode_significance decode_significance_x86
46 static int decode_significance_x86(
CABACContext *
c,
int max_coeff,
47 uint8_t *significant_coeff_ctx_base,
49 void *
end= significant_coeff_ctx_base + max_coeff - 1;
50 int minusstart= -(intptr_t)significant_coeff_ctx_base;
51 int minusindex= 4-(intptr_t)
index;
55 #ifdef BROKEN_RELOCATIONS
68 BRANCHLESS_GET_CABAC(
"%4",
"%q4",
"(%1)",
"%3",
"%w3",
69 "%5",
"%q5",
"%k0",
"%b0",
70 "%c11(%6)",
"%c12(%6)",
80 BRANCHLESS_GET_CABAC(
"%4",
"%q4",
"(%1)",
"%3",
"%w3",
81 "%5",
"%q5",
"%k0",
"%b0",
82 "%c11(%6)",
"%c12(%6)",
91 "add %1, %%"FF_REG_c
" \n\t"
92 "movl %%ecx, (%0) \n\t"
97 "add"FF_OPSIZE
" $4, %2 \n\t"
104 "movl %7, %%ecx \n\t"
105 "add %1, %%"FF_REG_c
" \n\t"
106 "movl %%ecx, (%0) \n\t"
110 :
"=&q"(coeff_count),
"+r"(significant_coeff_ctx_base),
"+m"(
index),
111 "+&r"(
c->low),
"=&r"(
bit),
"+&r"(
c->range)
112 :
"r"(
c),
"m"(minusstart),
"m"(
end),
"m"(minusindex),
"m"(last_off),
116 :
"%"FF_REG_c,
"memory"
121 #define decode_significance_8x8 decode_significance_8x8_x86
123 uint8_t *significant_coeff_ctx_base,
125 int minusindex= 4-(intptr_t)
index;
131 #ifdef BROKEN_RELOCATIONS
146 "movzb (%0, %6), %6 \n\t"
149 BRANCHLESS_GET_CABAC(
"%4",
"%q4",
"(%6)",
"%3",
"%w3",
150 "%5",
"%q5",
"%k0",
"%b0",
151 "%c12(%7)",
"%c13(%7)",
161 #ifdef BROKEN_RELOCATIONS
162 "movzb %c14(%15, %q6), %6\n\t"
168 BRANCHLESS_GET_CABAC(
"%4",
"%q4",
"(%6)",
"%3",
"%w3",
169 "%5",
"%q5",
"%k0",
"%b0",
170 "%c12(%7)",
"%c13(%7)",
183 "add"FF_OPSIZE
" $4, %2 \n\t"
195 :
"=&q"(coeff_count),
"+"REG64(last),
"+"REG64(
index),
"+&r"(
c->low),
196 "=&r"(
bit),
"+&r"(
c->range),
"=&r"(
state)
197 :
"r"(
c),
"m"(minusindex),
"m"(significant_coeff_ctx_base),
198 REG64(sig_off), REG64(last_coeff_ctx_base),
202 :
"%"FF_REG_c,
"memory"